cmdlib: Share lock in LUInstanceConsole
authorMichael Hanselmann <hansmi@google.com>
Mon, 14 Nov 2011 09:36:50 +0000 (10:36 +0100)
committerMichael Hanselmann <hansmi@google.com>
Tue, 15 Nov 2011 09:19:09 +0000 (10:19 +0100)
No writes are being done.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

lib/cmdlib.py

index 7410869..760e551 100644 (file)
@@ -9355,6 +9355,7 @@ class LUInstanceConsole(NoHooksLU):
   REQ_BGL = False
 
   def ExpandNames(self):
+    self.share_locks = _ShareAll()
     self._ExpandAndLockInstance()
 
   def CheckPrereq(self):