line formatting

This commit is contained in:
Whit Morriss 2015-04-22 09:36:05 -05:00
parent a57a64781a
commit 0ab77ae8be

View File

@ -2,6 +2,7 @@ import httplib
import json
import time
class Registrator:
def __init__(self):
@ -41,11 +42,10 @@ class Registrator:
body = response.read()
print(body)
result = json.loads(body)
print("Response status:%s reason:%s body:%s" % (
response.status, response.reason, result))
print("Response status:%s reason:%s body:%s" % \
(response.status, response.reason, result))
return response, result
def update(self):
''' Contact the API Server to update a registration '''
# do a get on the API for the node
@ -80,5 +80,3 @@ class Registrator:
print("Registration error")
# TODO - get request data
raise RuntimeError("Unable to register machine with")