From 0ab77ae8be88bc030770ae5ef5dfb88199607fc5 Mon Sep 17 00:00:00 2001 From: Whit Morriss Date: Wed, 22 Apr 2015 09:36:05 -0500 Subject: [PATCH] line formatting --- .../charms/trusty/kubernetes/hooks/lib/registrator.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cluster/juju/charms/trusty/kubernetes/hooks/lib/registrator.py b/cluster/juju/charms/trusty/kubernetes/hooks/lib/registrator.py index e096110730d..d8a57f0a7aa 100644 --- a/cluster/juju/charms/trusty/kubernetes/hooks/lib/registrator.py +++ b/cluster/juju/charms/trusty/kubernetes/hooks/lib/registrator.py @@ -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") - -