diff options
author | Tommy Carpenter <tommy@research.att.com> | 2018-03-05 11:25:44 -0500 |
---|---|---|
committer | Tommy Carpenter <tommy@research.att.com> | 2018-03-05 11:34:03 -0500 |
commit | 914d8ccb42befc04ec5b759dd84b242591bb5e91 (patch) | |
tree | 8a309014aece91b2afbcd5c7b4c3f4160c584d5c /config_binding_service/controller.py | |
parent | 16841e4acee2cc31558bdaf618d68e4349c06168 (diff) |
Enforce most pep8 compliance in tox
Also fix some pep8 failings
Change-Id: I6904c171c898d510ac2b7e2435b5a80dcdf1be13
Issue-ID: DCAEGEN2-348
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
Diffstat (limited to 'config_binding_service/controller.py')
-rw-r--r-- | config_binding_service/controller.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/config_binding_service/controller.py b/config_binding_service/controller.py index dbdb57b..7bb5f51 100644 --- a/config_binding_service/controller.py +++ b/config_binding_service/controller.py @@ -48,7 +48,7 @@ def bind_config_for_scn(service_component_name): except client.CantGetConfig as e: return Response(status=e.code, response=e.response) - except Exception as e: #should never happen... + except Exception as e: # should never happen... _logger.error(e) return Response(response="Please report this error", status=500) @@ -67,16 +67,17 @@ def get_key(key, service_component_name): return Response(status=exc.code, response=exc.response, mimetype="text/plain") - except Exception as e: #should never happen... + except Exception as e: # should never happen... _logger.error(e) return Response(response="Please report this error", status=500) def healthcheck(): - #got this far, I must be alive... check my connection to Consul by checking myself + # got this far, I must be alive... check my connection to Consul by checking myself CONSUL = get_consul_uri() - res = requests.get("{0}/v1/catalog/service/config_binding_service".format(CONSUL)) + res = requests.get( + "{0}/v1/catalog/service/config_binding_service".format(CONSUL)) if res.status_code == 200: return Response(response="CBS is alive and Consul connection OK", status=200) |