Revision ee66adf0 util/rapi.py
b/util/rapi.py | ||
---|---|---|
33 | 33 |
# No Ganeti-specific modules should be imported. The RAPI client is supposed to |
34 | 34 |
# be standalone. |
35 | 35 |
|
36 |
import logging |
|
36 |
from synnefo.logic import log |
|
37 |
|
|
37 | 38 |
import socket |
38 | 39 |
import urllib |
39 | 40 |
import threading |
40 | 41 |
import pycurl |
41 |
import synnefo |
|
42 | 42 |
|
43 | 43 |
try: |
44 | 44 |
import simplejson as json |
... | ... | |
250 | 250 |
|
251 | 251 |
def __init__(self, host, port=GANETI_RAPI_PORT, |
252 | 252 |
username=None, password=None, |
253 |
logger=synnefo.logic.log.get_logger("rapi"),
|
|
253 |
logger=log.get_logger("rapi"), |
|
254 | 254 |
curl_config_fn=None, curl_factory=None): |
255 | 255 |
"""Initializes this class. |
256 | 256 |
|
Also available in: Unified diff