Revision f6d9a522 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
2034 | 2034 |
def ExpandNames(self): |
2035 | 2035 |
self._ExpandAndLockInstance() |
2036 | 2036 |
self.needed_locks[locking.LEVEL_NODE] = [] |
2037 |
self.recalculate_locks[locking.LEVEL_NODE] = 'replace'
|
|
2037 |
self.recalculate_locks[locking.LEVEL_NODE] = constants.LOCKS_REPLACE
|
|
2038 | 2038 |
|
2039 | 2039 |
def DeclareLocks(self, level): |
2040 | 2040 |
if level == locking.LEVEL_NODE: |
... | ... | |
2109 | 2109 |
constants.INSTANCE_REBOOT_FULL)) |
2110 | 2110 |
self._ExpandAndLockInstance() |
2111 | 2111 |
self.needed_locks[locking.LEVEL_NODE] = [] |
2112 |
self.recalculate_locks[locking.LEVEL_NODE] = 'replace'
|
|
2112 |
self.recalculate_locks[locking.LEVEL_NODE] = constants.LOCKS_REPLACE
|
|
2113 | 2113 |
|
2114 | 2114 |
def DeclareLocks(self, level): |
2115 | 2115 |
if level == locking.LEVEL_NODE: |
... | ... | |
2183 | 2183 |
def ExpandNames(self): |
2184 | 2184 |
self._ExpandAndLockInstance() |
2185 | 2185 |
self.needed_locks[locking.LEVEL_NODE] = [] |
2186 |
self.recalculate_locks[locking.LEVEL_NODE] = 'replace'
|
|
2186 |
self.recalculate_locks[locking.LEVEL_NODE] = constants.LOCKS_REPLACE
|
|
2187 | 2187 |
|
2188 | 2188 |
def DeclareLocks(self, level): |
2189 | 2189 |
if level == locking.LEVEL_NODE: |
... | ... | |
2235 | 2235 |
def ExpandNames(self): |
2236 | 2236 |
self._ExpandAndLockInstance() |
2237 | 2237 |
self.needed_locks[locking.LEVEL_NODE] = [] |
2238 |
self.recalculate_locks[locking.LEVEL_NODE] = 'replace'
|
|
2238 |
self.recalculate_locks[locking.LEVEL_NODE] = constants.LOCKS_REPLACE
|
|
2239 | 2239 |
|
2240 | 2240 |
def DeclareLocks(self, level): |
2241 | 2241 |
if level == locking.LEVEL_NODE: |
... | ... | |
2512 | 2512 |
_GetWantedInstances(self, self.op.names) |
2513 | 2513 |
|
2514 | 2514 |
self.needed_locks[locking.LEVEL_NODE] = [] |
2515 |
self.recalculate_locks[locking.LEVEL_NODE] = 'replace'
|
|
2515 |
self.recalculate_locks[locking.LEVEL_NODE] = constants.LOCKS_REPLACE
|
|
2516 | 2516 |
|
2517 | 2517 |
def DeclareLocks(self, level): |
2518 | 2518 |
# TODO: locking of nodes could be avoided when not querying them |
... | ... | |
2647 | 2647 |
def ExpandNames(self): |
2648 | 2648 |
self._ExpandAndLockInstance() |
2649 | 2649 |
self.needed_locks[locking.LEVEL_NODE] = [] |
2650 |
self.recalculate_locks[locking.LEVEL_NODE] = 'replace'
|
|
2650 |
self.recalculate_locks[locking.LEVEL_NODE] = constants.LOCKS_REPLACE
|
|
2651 | 2651 |
|
2652 | 2652 |
def DeclareLocks(self, level): |
2653 | 2653 |
if level == locking.LEVEL_NODE: |
... | ... | |
4001 | 4001 |
def ExpandNames(self): |
4002 | 4002 |
self._ExpandAndLockInstance() |
4003 | 4003 |
self.needed_locks[locking.LEVEL_NODE] = [] |
4004 |
self.recalculate_locks[locking.LEVEL_NODE] = 'replace'
|
|
4004 |
self.recalculate_locks[locking.LEVEL_NODE] = constants.LOCKS_REPLACE
|
|
4005 | 4005 |
|
4006 | 4006 |
def DeclareLocks(self, level): |
4007 | 4007 |
if level == locking.LEVEL_NODE: |
Also available in: Unified diff