[node-patches] Change in ovirt-node[master]: installer: dont create hostvg on install disk unless request...

jboggs at redhat.com jboggs at redhat.com
Thu Sep 20 15:53:31 UTC 2012


Joey Boggs has uploaded a new change for review.

Change subject: installer: dont create hostvg on install disk unless requested
......................................................................

installer: dont create hostvg on install disk unless requested

rhbz#857378
Change-Id: I5eb7191a18ae8cc51af1001eeb11618de8f32d9a
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
M scripts/ovirtnode/storage.py
1 file changed, 4 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/96/8096/1

diff --git a/scripts/ovirtnode/storage.py b/scripts/ovirtnode/storage.py
index 8c00bc0..312ab0b 100644
--- a/scripts/ovirtnode/storage.py
+++ b/scripts/ovirtnode/storage.py
@@ -57,19 +57,20 @@
                                 _functions.OVIRT_VARS["OVIRT_INIT"].strip(",")
             if "," in _functions.OVIRT_VARS["OVIRT_INIT"]:
                 disk_count = 0
-                for disk in _functions.OVIRT_VARS["OVIRT_INIT"].split(","):
+                init = _functions.OVIRT_VARS["OVIRT_INIT"].strip(",").split(",")
+                for disk in init:
                     skip = False
                     if disk_count < 1:
                         self.ROOTDRIVE = disk
                         disk_count = disk_count + 1
-                        self.HOSTVGDRIVE = disk
                     else:
+                        self.HOSTVGDRIVE += "%s," % disk
                         for hostvg in self.HOSTVGDRIVE.split(","):
                             if hostvg == disk:
                                 skip = True
                                 break
                         if not skip:
-                            self.HOSTVGDRIVE = self.HOSTVGDRIVE + "," + disk
+                            self.HOSTVGDRIVE += "%s," % disk
             else:
                 self.ROOTDRIVE = _functions.translate_multipath_device(
                                     _functions.OVIRT_VARS["OVIRT_INIT"])


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5eb7191a18ae8cc51af1001eeb11618de8f32d9a
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Joey Boggs <jboggs at redhat.com>



More information about the node-patches mailing list