Blame SOURCES/0077-utilities-add-chroot-support-to-shell_out.patch
|
|
0cd6dc |
From 530a8004fcbc8e04ebf54897e323419ca579e727 Mon Sep 17 00:00:00 2001
|
|
|
0cd6dc |
From: "Bryn M. Reeves" <bmr@redhat.com>
|
|
|
0cd6dc |
Date: Mon, 26 Jan 2015 15:32:03 -0500
|
|
|
0cd6dc |
Subject: [PATCH 77/93] [utilities] add chroot support to shell_out()
|
|
|
0cd6dc |
|
|
|
0cd6dc |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
0cd6dc |
---
|
|
|
0cd6dc |
sos/utilities.py | 4 ++--
|
|
|
0cd6dc |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
0cd6dc |
|
|
|
0cd6dc |
diff --git a/sos/utilities.py b/sos/utilities.py
|
|
|
0cd6dc |
index cc25a8f..ef3e115 100644
|
|
|
0cd6dc |
--- a/sos/utilities.py
|
|
|
0cd6dc |
+++ b/sos/utilities.py
|
|
|
0cd6dc |
@@ -184,11 +184,11 @@ def import_module(module_fqname, superclasses=None):
|
|
|
0cd6dc |
return modules
|
|
|
0cd6dc |
|
|
|
0cd6dc |
|
|
|
0cd6dc |
-def shell_out(cmd, runat=None):
|
|
|
0cd6dc |
+def shell_out(cmd, chroot=None, runat=None):
|
|
|
0cd6dc |
"""Shell out to an external command and return the output or the empty
|
|
|
0cd6dc |
string in case of error.
|
|
|
0cd6dc |
"""
|
|
|
0cd6dc |
- return sos_get_command_output(cmd, chdir=runat)['output']
|
|
|
0cd6dc |
+ return sos_get_command_output(cmd, chroot=chroot, chdir=runat)['output']
|
|
|
0cd6dc |
|
|
|
0cd6dc |
|
|
|
0cd6dc |
class ImporterHelper(object):
|
|
|
0cd6dc |
--
|
|
|
0cd6dc |
1.9.3
|
|
|
0cd6dc |
|