Revision d4e4b2fd
b/lib/cmdlib.py | ||
---|---|---|
4814 | 4814 |
locking.LEVEL_NODE: lock_names, |
4815 | 4815 |
} |
4816 | 4816 |
|
4817 |
self.share_locks[locking.LEVEL_NODE_ALLOC] = 1 |
|
4818 |
|
|
4817 | 4819 |
if not self.op.node_names: |
4818 | 4820 |
# Acquire node allocation lock only if all nodes are affected |
4819 | 4821 |
self.needed_locks[locking.LEVEL_NODE_ALLOC] = locking.ALL_SET |
4820 |
self.share_locks[locking.LEVEL_NODE_ALLOC] = 1 |
|
4821 | 4822 |
|
4822 | 4823 |
def CheckPrereq(self): |
4823 | 4824 |
"""Check prerequisites. |
Also available in: Unified diff