Commit f55ff7ec authored by Iustin Pop's avatar Iustin Pop
Browse files

Add the number of VCPUs in gnt-instance info

Reviewed-by: imsnah
parent 1d67656e
......@@ -3454,6 +3454,7 @@ class LUQueryInstanceData(NoHooksLU):
"memory": instance.memory,
"nics": [(nic.mac, nic.ip, nic.bridge) for nic in instance.nics],
"disks": disks,
"vcpus": instance.vcpus,
}
result[instance.name] = idict
......
......@@ -543,6 +543,7 @@ def ShowInstanceConfig(opts, args):
buf.write(" - secondaries: %s\n" % ", ".join(instance["snodes"]))
buf.write(" Operating system: %s\n" % instance["os"])
buf.write(" Hardware:\n")
buf.write(" - VCPUs: %d\n" % instance["vcpus"])
buf.write(" - memory: %dMiB\n" % instance["memory"])
buf.write(" - NICs: %s\n" %
", ".join(["{MAC: %s, IP: %s, bridge: %s}" %
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment