[master/rhel7] Show last 4 bytes of wwid (#1024966)
Vratislav Podzimek
vpodzime at redhat.com
Tue Nov 5 06:54:51 UTC 2013
On Mon, 2013-11-04 at 17:19 -0800, Brian C. Lane wrote:
> 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
>
ACK.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list