[master/rhel7] Show last 4 bytes of wwid (#1024966)
Brian C. Lane
bcl at redhat.com
Tue Nov 5 01:19:54 UTC 2013
From: Jan Stodola <jstodola at redhat.com>
It was dropping the lsb, which may be the unique part of the wwid.
Resolves: rhbz#1024966
Signed-off-by: Brian C. Lane <bcl at redhat.com>
---
pyanaconda/ui/gui/spokes/storage.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index fc5a7aa..b70331f 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -629,7 +629,7 @@ class StorageSpoke(NormalSpoke, StorageChecker):
# That makes the DO way too wide.
if isinstance(disk, MultipathDevice):
desc = disk.wwid.split(":")
- description = ":".join(desc[0:3]) + "..." + ":".join(desc[-5:-1])
+ description = ":".join(desc[0:3]) + "..." + ":".join(desc[-4:])
else:
description = disk.description
--
1.8.3.1
More information about the anaconda-patches
mailing list