Fix yet another bug in LURepairDiskSizes
authorIustin Pop <iustin@google.com>
Mon, 10 Aug 2009 15:55:19 +0000 (17:55 +0200)
committerIustin Pop <iustin@google.com>
Tue, 11 Aug 2009 09:19:12 +0000 (11:19 +0200)
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: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>

lib/cmdlib.py

index 73c4e5d..4d20e10 100644 (file)
@@ -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,