details: Show controller description + index

This patch and future patches can help users to better recognize which
disks connect to which scsi controllers.

Signed-off-by: Lin Ma <lma@suse.com>
This commit is contained in:
Lin Ma 2017-11-06 20:52:04 +08:00 committed by Cole Robinson
parent 4e93ad09cb
commit 2e85ad5675

View File

@ -234,7 +234,7 @@ def _label_for_device(dev):
if devtype == "filesystem":
return _("Filesystem %s") % dev.target[:8]
if devtype == "controller":
return _("Controller %s") % dev.pretty_desc()
return _("Controller %s %s") % (dev.pretty_desc(), dev.index)
if devtype == "rng":
label = _("RNG")
if dev.device: