aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2021-06-12 00:02:36 -0400
committerJake Hunsaker <jhunsake@redhat.com>2021-06-21 12:48:07 -0400
commit96f166699d12704cc7cf73cb8b13278675f68730 (patch)
treedd0019e8d05e10759a193286b006308467e72ccf /tests
parentaed0102a1d6ef9a030c9e5349f092b51b9d1f22d (diff)
downloadsos-96f166699d12704cc7cf73cb8b13278675f68730.tar.gz
[sosnode] Support passing env vars to `run_command()`
Updates `run_command()` to support passing new environment variables to the command being run, for that command alone. This parameter takes a dict, and if set we will first copy the existing set of env vars on the node and then update that set of variables using the passed dict. Additionally, `execute_sos_command()` will now try to pass a new `sos_env_vars` dict (default empty) so that clusters may set environment variables specifically for the sos command being run, without having to modify the actual sos command being executed. Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions