[master/rhel7-branch] Fix the way zFCP devices are displayed in storage spoke. (#1024902)

Chris Lumens clumens at redhat.com
Thu Sep 18 14:26:21 UTC 2014


> @@ -603,6 +603,10 @@ class StorageSpoke(NormalSpoke, StorageChecker):
>          if isinstance(disk, MultipathDevice):
>              desc = disk.wwid.split(":")
>              description = ":".join(desc[0:3]) + "..." + ":".join(desc[-4:])
> +        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))

Change this to do the string substitution outside the call to _().

- Chris


More information about the anaconda-patches mailing list