From 610e39da1ebb3c3fe94f07adb1c4f383cac34f03 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Mon, 10 Aug 2009 17:55:19 +0200 Subject: [PATCH] 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: Iustin Pop Reviewed-by: Guido Trotter --- lib/cmdlib.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 73c4e5d..4d20e10 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -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, -- 1.7.10.4