Commit a0cf694a authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Fix some pack/unpack errors; it appears that latest python is way more

pedantic!
parent 42f11a8d
...@@ -164,10 +164,10 @@ def do_method(module, method, params): ...@@ -164,10 +164,10 @@ def do_method(module, method, params):
print ("error: bad reponse from host, " + e.args[0] print ("error: bad reponse from host, " + e.args[0]
+ ", and handler: " + e.args[1]) + ", and handler: " + e.args[1])
print "error: " + e.args[2] print "error: " + e.args[2]
return -1 return (-1, None)
except xmlrpclib.Fault, e: except xmlrpclib.Fault, e:
print e.faultString print e.faultString
return -1 return (-1, None)
# #
# Parse the Response, which is a Dictionary. See EmulabResponse in the # Parse the Response, which is a Dictionary. See EmulabResponse in the
...@@ -189,7 +189,7 @@ def do_method(module, method, params): ...@@ -189,7 +189,7 @@ def do_method(module, method, params):
rval = response["value"] rval = response["value"]
pass pass
pass pass
return rval, response return (rval, response)
# #
# node_admin # node_admin
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment