[node-patches] Change in ovirt-node[master]: fix some el6 service calls

mburns at redhat.com mburns at redhat.com
Tue Jun 25 13:51:34 UTC 2013


Michael Burns has uploaded a new change for review.

Change subject: fix some el6 service calls
......................................................................

fix some el6 service calls

service sends a list which is not handled by pipe correctly

Change-Id: I5e7ba66939e467a84a7bd457f410a9f2255e782e
Signed-off-by: Mike Burns <mburns at redhat.com>
---
M src/ovirt/node/utils/process.py
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/80/16080/1

diff --git a/src/ovirt/node/utils/process.py b/src/ovirt/node/utils/process.py
index 2f0cb17..fc9f0e1 100644
--- a/src/ovirt/node/utils/process.py
+++ b/src/ovirt/node/utils/process.py
@@ -75,6 +75,8 @@
     kwargs = __update_kwargs(kwargs)
     LOGGER.debug("Checking output with: %s %s" % (args, kwargs))
     if ovirt.node.utils.system.is_python_2_6():
+        if isinstance(args[0], list):
+            args = (" ".join(args[0]),)
         return pipe(*args)
     return unicode(subprocess.check_output(*args, **kwargs),
                    encoding=sys.stdin.encoding)


-- 
To view, visit http://gerrit.ovirt.org/16080
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5e7ba66939e467a84a7bd457f410a9f2255e782e
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Michael Burns <mburns at redhat.com>



More information about the node-patches mailing list