[node-patches] Change in ovirt-node[master]: don't attempt unchecking live device in hostvg list

jboggs at redhat.com jboggs at redhat.com
Thu Nov 29 23:50:11 UTC 2012


Joey Boggs has uploaded a new change for review.

Change subject: don't attempt unchecking live device in hostvg list
......................................................................

don't attempt unchecking live device in hostvg list

rhbz#881536

Change-Id: Icbc6828e6afe91346e7ec2c254313b8b3667a1ec
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
M scripts/ovirt-config-installer.py
1 file changed, 3 insertions(+), 2 deletions(-)


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

diff --git a/scripts/ovirt-config-installer.py b/scripts/ovirt-config-installer.py
index 228429c..b30a59f 100644
--- a/scripts/ovirt-config-installer.py
+++ b/scripts/ovirt-config-installer.py
@@ -532,8 +532,9 @@
                 self.hostvg_checkbox.setEntryValue("OtherDevice", selected = 0)
             if self.hostvg_checkbox.getEntryValue("OtherDevice")[1] == 1 and dev == "OtherDevice":
                 for d in self.dev_names:
-                    d = translate_multipath_device(d)
-                    self.hostvg_checkbox.setEntryValue(d, selected = 0)
+                    if not d == self.live_disk:
+                        d = translate_multipath_device(d)
+                        self.hostvg_checkbox.setEntryValue(d, selected = 0)
         if "Location" in dev or "NoDevices" in dev or "OtherDevice" in dev:
             blank_entry = ",,,,,"
             dev_bus,dev_name,dev_size,dev_desc,dev_serial,dev_model = blank_entry.split(",",5)


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icbc6828e6afe91346e7ec2c254313b8b3667a1ec
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