python2.6 does not like unicode dict keys as kargs

This commit is contained in:
j 2013-05-03 17:29:53 +02:00
parent 15da3c1d5b
commit b55e12d057

View file

@ -35,7 +35,7 @@ class DistributedClient:
r = requests.get(url) r = requests.get(url)
data = json.loads(r.content) data = json.loads(r.content)
if 'oshash' in data: if 'oshash' in data:
self.encode(**data) self.encode(data['oshash'], data['cmd'], data['output'])
return True return True
return False return False