[node-patches] Change in ovirt-node[master]: limit root/hostvg display name to 31 chars screen will show ...

jboggs at redhat.com jboggs at redhat.com
Mon Nov 12 21:15:20 UTC 2012


Joey Boggs has uploaded a new change for review.

Change subject: limit root/hostvg display name to 31 chars screen will show empty device name due to spacing overlap
......................................................................

limit root/hostvg display name to 31 chars
screen will show empty device name due to spacing overlap

rhbz#873146

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


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/06/9206/1

diff --git a/scripts/ovirt-config-installer.py b/scripts/ovirt-config-installer.py
index a906d76..c085ba2 100644
--- a/scripts/ovirt-config-installer.py
+++ b/scripts/ovirt-config-installer.py
@@ -564,7 +564,7 @@
                     dev_desc = pad_or_trim(32, dev_desc)
                     self.valid_disks.append(dev_name)
                     dev_name = os.path.basename(dev_name).replace(" ", "")
-                    dev_name = pad_or_trim(32, dev_name)
+                    dev_name = pad_or_trim(31, dev_name)
                     dev_entry = " %6s  %11s  %5s GB" % (dev_bus,dev_name, dev_size)
                     dev_name = translate_multipath_device(dev_name)
                     self.root_disk_menu_list.append(dev_entry, dev)
@@ -634,7 +634,7 @@
                         select_status = 0
                     # strip all "/dev/*/" references and leave just basename
                     dev_name = os.path.basename(dev_name).replace(" ", "")
-                    dev_name = pad_or_trim(32, dev_name)
+                    dev_name = pad_or_trim(31, dev_name)
                     dev_entry = " %6s %10s %2s GB" % (dev_bus,dev_name, dev_size)
                     self.hostvg_checkbox.addItem(dev_entry, (0, snackArgs['append']), item = dev, selected = select_status)
                     self.displayed_disks[dev] = ""


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

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