Revision fad50141 lib/luxi.py
b/lib/luxi.py | ||
---|---|---|
36 | 36 |
import errno |
37 | 37 |
|
38 | 38 |
from ganeti import opcodes |
39 |
from ganeti import serializer |
|
39 | 40 |
from ganeti import constants |
40 | 41 |
|
41 | 42 |
|
... | ... | |
265 | 266 |
|
266 | 267 |
""" |
267 | 268 |
msg = {KEY_REQUEST: request, KEY_DATA: data} |
268 |
result = self.transport.Call(simplejson.dumps(msg))
|
|
269 |
result = self.transport.Call(serializer.DumpJson(msg, indent=False))
|
|
269 | 270 |
try: |
270 |
data = simplejson.loads(result)
|
|
271 |
data = serializer.LoadJson(result)
|
|
271 | 272 |
except Exception, err: |
272 | 273 |
raise ProtocolError("Error while deserializing response: %s" % str(err)) |
273 | 274 |
if (not isinstance(data, dict) or |
Also available in: Unified diff