mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-04 17:47:19 +03:00
details: Fix regression in 'customize before install'
char target_port isn't available before we've installed the guest
This commit is contained in:
parent
6f93d3decf
commit
b2b0ac0cc2
@ -3152,7 +3152,8 @@ class vmmDetails(vmmGObjectUI):
|
||||
|
||||
label = devtype.capitalize()
|
||||
if devtype in ["serial", "parallel", "console"]:
|
||||
label += " %s" % (int(port) + 1)
|
||||
if port is not None:
|
||||
label += " %s" % (int(port) + 1)
|
||||
elif devtype == "channel":
|
||||
name = chardev.pretty_channel_name(chardev.target_name)
|
||||
if name:
|
||||
|
Loading…
x
Reference in New Issue
Block a user