[node-patches] Change in ovirt-node[master]: Fix value error during configuring installation.device.custo...

hadong0720 at gmail.com hadong0720 at gmail.com
Thu Mar 20 02:45:34 UTC 2014


hadong has uploaded a new change for review.

Change subject: Fix value error during configuring installation.device.custom into "/dev/sda,/dev/sdb"
......................................................................

Fix value error during configuring installation.device.custom into "/dev/sda,/dev/sdb"

Change-Id: I005ec2119c4df6373193b475380686efd90470b2
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1078608
Signed-off-by: hadong <hadong0720 at gmail.com>
---
M src/ovirt/node/installer/core/installation_device_page.py
1 file changed, 4 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/20/25920/1

diff --git a/src/ovirt/node/installer/core/installation_device_page.py b/src/ovirt/node/installer/core/installation_device_page.py
index 364d099..8f93c6b 100644
--- a/src/ovirt/node/installer/core/installation_device_page.py
+++ b/src/ovirt/node/installer/core/installation_device_page.py
@@ -61,7 +61,7 @@
     def validators(self):
         def has_selection(v):
             if (self.widgets["installation.device.current"].selection() or
-                    "installation.device.custom" in self._model):
+               "installation.device.custom" in self._model):
                 return True
             else:
                 return "Please select at least one installation device."
@@ -170,6 +170,7 @@
             self.application.ui.navigate.to_previous_plugin()
         elif changes.contains_any(["button.next"]):
             if "installation.device.custom" in self._model:
-                cdev = self._model["installation.device.custom"]
-                self._model["installation.devices"].append(cdev)
+                customdev = self._model["installation.device.custom"]
+                for cdev in customdev.split(","):
+                    self._model["installation.devices"].append(cdev)
             self.application.ui.navigate.to_next_plugin()


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I005ec2119c4df6373193b475380686efd90470b2
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hadong <hadong0720 at gmail.com>



More information about the node-patches mailing list