mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
details: If we know the channel target name, pretty list it
This commit is contained in:
@@ -3511,9 +3511,12 @@ class vmmDetails(vmmGObjectUI):
|
||||
port = chardev.target_port
|
||||
|
||||
label = devtype.capitalize()
|
||||
if devtype not in ["console", "channel"]:
|
||||
# Don't show port for console
|
||||
if devtype in ["serial", "parallel"]:
|
||||
label += " %s" % (int(port) + 1)
|
||||
elif devtype == "channel":
|
||||
name = chardev.pretty_channel_name(chardev.target_name)
|
||||
if name:
|
||||
label += " %s" % name
|
||||
|
||||
update_hwlist(HW_LIST_TYPE_CHAR, chardev, label,
|
||||
"device_serial")
|
||||
|
||||
Reference in New Issue
Block a user