[node-patches] Change in ovirt-node[master]: system: Fix vg discovery

fabiand at fedoraproject.org fabiand at fedoraproject.org
Fri Jun 27 09:55:03 UTC 2014


Fabian Deutsch has uploaded a new change for review.

Change subject: system: Fix vg discovery
......................................................................

system: Fix vg discovery

Change-Id: I55a2f6f941125a9574e6278365ea693df2adb949
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/utils/system.py
1 file changed, 5 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/42/29342/1

diff --git a/src/ovirt/node/utils/system.py b/src/ovirt/node/utils/system.py
index ef2d75b..2f3ab07 100644
--- a/src/ovirt/node/utils/system.py
+++ b/src/ovirt/node/utils/system.py
@@ -981,9 +981,12 @@
             cmd.append(pv)
 
         out = process.check_output(cmd).strip()
+        vgs = None
 
         # If not VGs are found, just simulate an empty list of VGs
         if "No volume groups found" in out:
-            out = []
+            vgs = []
+        else:
+            vgs = [x.strip() for x in out.split("\n")]
 
-        return [x.strip() for x in out.split("\n")]
+        return vgs


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I55a2f6f941125a9574e6278365ea693df2adb949
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>
Gerrit-Reviewer: Fabian Deutsch <fabiand at fedoraproject.org>



More information about the node-patches mailing list