diff options
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) |