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

Fix modification of instance memory

... as found by the QA script - bug was introduced by me in commit 2117.

Reviwed-by: imsnah
parent 836d59d7
......@@ -5286,7 +5286,9 @@ class LUSetInstanceParams(LogicalUnit):
" missing on its primary node" % miss_mem)
if be_new[constants.BE_AUTO_BALANCE]:
for node, nres in instance.secondary_nodes.iteritems():
for node, nres in nodeinfo.iteritems():
if node not in instance.secondary_nodes:
continue
if nres.failed or not isinstance(nres.data, dict):
self.warn.append("Can't get info from secondary node %s" % node)
elif be_new[constants.BE_MEMORY] > nres.data['memory_free']:
......
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