[master/rhel7-branch] Fix string formatting of zFCP devices (#1024902)

Samantha N. Bueno sbueno+anaconda at redhat.com
Fri Sep 19 15:02:20 UTC 2014


Related: rhbz#1024902
---
 pyanaconda/ui/gui/spokes/storage.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index 7365f28..b90006b 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -606,7 +606,8 @@ class StorageSpoke(NormalSpoke, StorageChecker):
         elif isinstance(disk, ZFCPDiskDevice):
             # manually mangle the desc of a zFCP device to be multi-line since
             # it's so long it makes the disk selection screen look odd
-            description = _("FCP device %s\nWWPN %s\nLUN %s" % (disk.hba_id, disk.wwpn, disk.fcp_lun))
+            description = _("FCP device %(hba_id)s\nWWPN %(wwpn)s\nLUN %(lun)s") % \
+                            {"hba_id": disk.hba_id, "wwpn": disk.wwpn, "lun": disk.fcp_lun}
         else:
             description = disk.description
 
-- 
1.9.3



More information about the anaconda-patches mailing list