Revision fe267188 lib/rpc.py
b/lib/rpc.py | ||
---|---|---|
42 | 42 |
from ganeti import constants |
43 | 43 |
from ganeti import errors |
44 | 44 |
|
45 |
import ganeti.http.client |
|
45 |
# pylint has a bug here, doesn't see this import |
|
46 |
import ganeti.http.client # pylint: disable-msg=W0611 |
|
46 | 47 |
|
47 | 48 |
|
48 | 49 |
# Module level variable |
... | ... | |
55 | 56 |
Must be called before using any RPC function. |
56 | 57 |
|
57 | 58 |
""" |
58 |
global _http_manager |
|
59 |
global _http_manager # pylint: disable-msg=W0603
|
|
59 | 60 |
|
60 | 61 |
assert not _http_manager, "RPC module initialized more than once" |
61 | 62 |
|
... | ... | |
68 | 69 |
Must be called before quitting the program. |
69 | 70 |
|
70 | 71 |
""" |
71 |
global _http_manager |
|
72 |
global _http_manager # pylint: disable-msg=W0603
|
|
72 | 73 |
|
73 | 74 |
if _http_manager: |
74 | 75 |
_http_manager.Shutdown() |
Also available in: Unified diff