[node-patches] Change in ovirt-node[master]: Shown the value of variable quantity "PRODUCT_SHORT" instead...

hadong0720 at gmail.com hadong0720 at gmail.com
Sat Jul 6 12:00:16 UTC 2013


hadong has uploaded a new change for review.

Change subject: Shown the value of variable quantity "PRODUCT_SHORT" instead of just shown string "PRODUCT_NAME" for the description of CustomDeviceDialog
......................................................................

Shown the value of variable quantity "PRODUCT_SHORT" instead of
just shown string "PRODUCT_NAME" for the description of CustomDeviceDialog

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


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/26/16526/1

diff --git a/src/ovirt/node/installer/core/boot_device_page.py b/src/ovirt/node/installer/core/boot_device_page.py
index 51cd495..13708ad 100644
--- a/src/ovirt/node/installer/core/boot_device_page.py
+++ b/src/ovirt/node/installer/core/boot_device_page.py
@@ -106,7 +106,10 @@
         elif changes.contains_any(["boot.device"]):
             device = changes["boot.device"]
             if device == "other":
-                self._dialog = CustomDeviceDialog("custom", "x", "y")
+                description = "Please select the disk to use " \
+                              "for booting %s" % \
+                              self.application.product.PRODUCT_SHORT
+                self._dialog = CustomDeviceDialog("custom", "x", description)
                 return self._dialog
             else:
                 self.application.ui.navigate.to_next_plugin()
@@ -199,7 +202,7 @@
     """
     def __init__(self, path, title, description):
         title = "Custom Block Device"
-        description = "Please select the disk to use for booting PRODUCT_NAME"
+
         device_entry = ui.Entry("boot.device.custom", "Device path:")
         children = [ui.Label("label[0]", description),
                     ui.Divider("divider[0]"),


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

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