Commit 0f63c080 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis Committed by Helga Velroyen
Browse files

Fix gnt-network client wrt instances report

Let the gnt-network client expect a list of instance names and not
UUIDs as returned by QueryNetworks (by both old and new style query
Signed-off-by: default avatarDimitris Aragiorgis <>
Reviewed-by: default avatarHelga Velroyen <>
parent 96092119
......@@ -246,12 +246,8 @@ def ShowNetworkConfig(_, args):
ToStdout(" not connected to any node group")
if instances:
idata = cl.QueryInstances([], ["uuid", "name"], False)
uuid2name = dict(idata)
ToStdout(" used by %d instances:", len(instances))
for inst in instances:
name = uuid2name[inst]
for name in instances:
((ips, networks), ) = cl.QueryInstances([name],
["nic.ips", "nic.networks"],
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