Commit 515207af authored by Guido Trotter's avatar Guido Trotter
Browse files

Fix gnt-instance info i1 i2 ...

Due to an indentation error only the last instance queried got returned by
LUQueryInstanceData. Moving the append() call inside the for cycle to fix this

This is a one-liner targeted at 1.2.3

Reviewed-by: iustinp
parent e30c295e
......@@ -4028,7 +4028,7 @@ class LUQueryInstanceData(NoHooksLU):
instance = self.cfg.GetInstanceInfo(self.cfg.ExpandInstanceName(name))
if instance is None:
raise errors.OpPrereqError("No such instance name '%s'" % name)
self.wanted_instances = [self.cfg.GetInstanceInfo(name) for name
in self.cfg.GetInstanceList()]
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