[node-patches] Change in ovirt-node[master]: installer: Fix installation device selection
fabiand at fedoraproject.org
fabiand at fedoraproject.org
Wed Feb 19 14:14:04 UTC 2014
Fabian Deutsch has uploaded a new change for review.
Change subject: installer: Fix installation device selection
......................................................................
installer: Fix installation device selection
Missed something in the last patch
Change-Id: I57a863dcdbf4644360cf89b30d53d344a93a5010
Signed-off-by: Fabian Deutsch <fabiand at redhat.com>
---
M src/ovirt/node/installer/core/installation_device_page.py
1 file changed, 5 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/57/24757/1
diff --git a/src/ovirt/node/installer/core/installation_device_page.py b/src/ovirt/node/installer/core/installation_device_page.py
index 4f1077d..63e237f 100644
--- a/src/ovirt/node/installer/core/installation_device_page.py
+++ b/src/ovirt/node/installer/core/installation_device_page.py
@@ -48,9 +48,12 @@
selected_boot_dev = \
self.application.plugins()["Boot Device"]\
.model()["boot.device.current"]
+ self.logger.debug("Selected boot device: %s" %
+ selected_boot_dev)
first_dev = devices[0][0]
- if selected_boot_dev in devices:
- first_dev = selected_boot_device
+ if selected_boot_dev in [dev[0] for dev in devices]:
+ first_dev = selected_boot_dev
+ self.logger.debug("First installation device: %s" % first_dev)
self._model["installation.device.details"] = first_dev
self._model["installation.device.current"] = first_dev
return self._model
--
To view, visit http://gerrit.ovirt.org/24757
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I57a863dcdbf4644360cf89b30d53d344a93a5010
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>
More information about the node-patches
mailing list