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

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
mechanism).
Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
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"],
use_locking=False)
......
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