[node-patches] Change in ovirt-node[master]: installer: disable devices in hostvg selection if selecting ...

jboggs at redhat.com jboggs at redhat.com
Thu Oct 25 03:25:12 UTC 2012


Joey Boggs has uploaded a new change for review.

Change subject: installer: disable devices in hostvg selection if selecting Other Device option
......................................................................

installer: disable devices in hostvg selection if selecting Other Device option

rhbz#869631

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


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/02/8802/1

diff --git a/scripts/ovirt-config-installer.py b/scripts/ovirt-config-installer.py
index c503920..e84b7a1 100644
--- a/scripts/ovirt-config-installer.py
+++ b/scripts/ovirt-config-installer.py
@@ -522,7 +522,14 @@
         if self.__current_page == ROOT_STORAGE_PAGE:
             dev = self.root_disk_menu_list.current()
         elif self.__current_page == HOSTVG_STORAGE_PAGE:
+            self.hostvg_checkbox.getEntryValue("OtherDevice")[1]
             dev = self.hostvg_checkbox.getCurrent()
+            if self.hostvg_checkbox.getEntryValue(dev)[1] == 1 and dev != "OtherDevice":
+                self.hostvg_checkbox.setEntryValue("OtherDevice", selected = 0)
+            if self.hostvg_checkbox.getEntryValue("OtherDevice")[1] == 1 and dev == "OtherDevice":
+                for dev in self.dev_names:
+                    dev = translate_multipath_device(dev)
+                    self.hostvg_checkbox.setEntryValue(dev, selected = 0)
         if "Location" in dev or "NoDevices" in dev:
             blank_entry = ",,,,,"
             dev_bus,dev_name,dev_size,dev_desc,dev_serial,dev_model = blank_entry.split(",",5)
@@ -609,6 +616,7 @@
         for dev in devs:
             dev_names.append(dev)
         dev_names.sort()
+        self.dev_names = dev_names
         self.displayed_disks = {}
         for dev in dev_names:
             dev = translate_multipath_device(dev)


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

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