Revision c70d2d9b
b/lib/cmdlib.py | ||
---|---|---|
21 | 21 |
|
22 | 22 |
"""Module implementing the master-side code.""" |
23 | 23 |
|
24 |
# pylint: disable-msg=W0613,W0201 |
|
24 |
# pylint: disable-msg=W0201 |
|
25 |
|
|
26 |
# W0201 since most LU attributes are defined in CheckPrereq or similar |
|
27 |
# functions |
|
25 | 28 |
|
26 | 29 |
import os |
27 | 30 |
import os.path |
b/lib/locking.py | ||
---|---|---|
20 | 20 |
|
21 | 21 |
"""Module implementing the Ganeti locking code.""" |
22 | 22 |
|
23 |
# pylint: disable-msg=W0613,W0201 |
|
23 |
# pylint: disable-msg=W0212 |
|
24 |
|
|
25 |
# W0212 since e.g. LockSet methods use (a lot) the internals of |
|
26 |
# SharedLock |
|
24 | 27 |
|
25 | 28 |
import threading |
26 | 29 |
# Wouldn't it be better to define LockingError in the locking module? |
... | ... | |
761 | 764 |
""" |
762 | 765 |
return BGL in self.__keyring[LEVEL_CLUSTER]._list_owned() |
763 | 766 |
|
764 |
def _contains_BGL(self, level, names): # pylint: disable-msg=C0103 |
|
767 |
@staticmethod |
|
768 |
def _contains_BGL(level, names): # pylint: disable-msg=C0103 |
|
765 | 769 |
"""Check if the level contains the BGL. |
766 | 770 |
|
767 | 771 |
Check if acting on the given level and set of names will change |
Also available in: Unified diff