Commit 610e39da authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix yet another bug in LURepairDiskSizes



This is a result of broken copy-paste, and because needed_locks is not a
dict right here it will error out.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 4d9e6835
......@@ -1348,7 +1348,6 @@ class LURepairDiskSizes(NoHooksLU):
if full_name is None:
raise errors.OpPrereqError("Instance '%s' not known" % name)
self.wanted_names.append(full_name)
self.needed_locks[locking.LEVEL_INSTANCE] = self.wanted_names
self.needed_locks = {
locking.LEVEL_NODE: [],
locking.LEVEL_INSTANCE: self.wanted_names,
......
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