Hide topology in long output

This commit is contained in:
Joshua Boniface 2024-05-21 16:40:47 -04:00
parent 1f18e88c06
commit 2fcee28fed
1 changed files with 5 additions and 4 deletions

View File

@ -1562,11 +1562,12 @@ def format_info(config, domain_information, long_output):
ansiprint.purple(), ansiprint.end(), domain_information["vcpu"] ansiprint.purple(), ansiprint.end(), domain_information["vcpu"]
) )
) )
ainformation.append( if long_output is True:
"{}Topology (S/C/T):{} {}".format( ainformation.append(
ansiprint.purple(), ansiprint.end(), domain_information["vcpu_topology"] "{}Topology (S/C/T):{} {}".format(
ansiprint.purple(), ansiprint.end(), domain_information["vcpu_topology"]
)
) )
)
if ( if (
domain_information["vnc"].get("listen", "None") != "None" domain_information["vnc"].get("listen", "None") != "None"