[master/rhel7-branch] Fix string formatting of zFCP devices (#1024902)
Martin Kolman
mkolman at redhat.com
Fri Sep 19 15:05:25 UTC 2014
----- Original Message -----
> From: "Samantha N. Bueno" <sbueno+anaconda at redhat.com>
> To: anaconda-patches at lists.fedorahosted.org
> Sent: Friday, September 19, 2014 5:02:20 PM
> Subject: [master/rhel7-branch] Fix string formatting of zFCP devices (#1024902)
>
> 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
Looks good, thanks & ACK! :)
>
> --
> 1.9.3
>
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
>
More information about the anaconda-patches
mailing list