diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2015-01-25 14:20:10 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2015-07-07 21:01:09 +0100 |
commit | 4a0a3f9607006d402713320fc31780fb54556e6a (patch) | |
tree | d4d311f148584d3a0ab670dc455ab30c1afb91b3 /sos/plugins/__init__.py | |
parent | c4957d8aa4ea35f879639726267043f6bb46cc7c (diff) | |
download | sos-4a0a3f9607006d402713320fc31780fb54556e6a.tar.gz |
[utilities] add chroot support to sos_get_command_output()
Allow callers of sos_get_command_output() to specify a path to
chroot into before executing command.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'sos/plugins/__init__.py')
-rw-r--r-- | sos/plugins/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py index 790338bc..137e1a1a 100644 --- a/sos/plugins/__init__.py +++ b/sos/plugins/__init__.py @@ -499,7 +499,7 @@ class Plugin(object): self._log_info("added copyspec '%s'" % copy_paths) def get_command_output(self, prog, timeout=300, runat=None, stderr=True): - result = sos_get_command_output(prog, timeout=timeout, runat=runat, + result = sos_get_command_output(prog, timeout=timeout, chdir=runat, stderr=stderr) if result['status'] == 124: self._log_warn("command '%s' timed out after %ds" |