Rm comments
This commit is contained in:
parent
4ce00fd44e
commit
81091e6a90
|
@ -20,18 +20,12 @@ class ZDaemon(object):
|
|||
'params': args,
|
||||
'id': self.id_count})
|
||||
|
||||
print "JSONDATA: ", jsondata
|
||||
|
||||
r = requests.post(self.network, auth=(self.user,self.password), data=jsondata, timeout=self.timeout)
|
||||
|
||||
self.id_count += 1
|
||||
|
||||
# print "Bare text: ", r.text
|
||||
|
||||
resp = json.loads(r.text)
|
||||
|
||||
# print "Bare response: %s \n\n" % resp
|
||||
|
||||
#TODO: deal with errors better.
|
||||
error = resp['error']
|
||||
if error:
|
||||
|
|
Loading…
Reference in New Issue