Skip to content

Commit

Permalink
The client should be receiving result in JSON format
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaeon committed Mar 31, 2014
1 parent 17005e8 commit edb7fcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vpoller-client
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Options:
if args['--helper'] and args['--helper'] in helpers:
result = vpoller_helpers(args['--helper'], msg, data)
else:
result = json.dumps(json.loads(data), indent=4)
result = json.dumps(data, indent=4)

print result

Expand Down
2 changes: 1 addition & 1 deletion src/vpoller/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def run(self, msg):
# Do we have a reply?
if socks.get(self.zclient) == zmq.POLLIN:
logging.debug('Received reply on client socket')
result = self.zclient.recv()
result = self.zclient.recv_json()
break
else:
# We didn't get a reply back from the server, let's retry
Expand Down

0 comments on commit edb7fcd

Please sign in to comment.