aboutsummaryrefslogtreecommitdiffstats
path: root/sos/plugins/__init__.py
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2015-01-25 14:20:10 +0000
committerBryn M. Reeves <bmr@redhat.com>2015-07-07 21:01:09 +0100
commit4a0a3f9607006d402713320fc31780fb54556e6a (patch)
treed4d311f148584d3a0ab670dc455ab30c1afb91b3 /sos/plugins/__init__.py
parentc4957d8aa4ea35f879639726267043f6bb46cc7c (diff)
downloadsos-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__.py2
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"