From 610e39da1ebb3c3fe94f07adb1c4f383cac34f03 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
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 <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
---
 lib/cmdlib.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index 73c4e5dff..4d20e103e 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,
-- 
GitLab