Commit f626cef4 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

LUInstanceRecreateDisks: Actually acquire node resource locks

Before this change an assertion would fail as the resource locks weren't
actually acquired.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarGuido Trotter <>
parent a81075bf
......@@ -6863,6 +6863,7 @@ class LUInstanceRecreateDisks(LogicalUnit):
self.needed_locks[locking.LEVEL_NODE] = list(self.op.nodes)
self.needed_locks[locking.LEVEL_NODE] = []
self.needed_locks[locking.LEVEL_NODE_RES] = []
def DeclareLocks(self, level):
if level == locking.LEVEL_NODE:
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