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