aboutsummaryrefslogtreecommitdiffstats
path: root/miss_htbt_service/check_health.py
diff options
context:
space:
mode:
authorSatoshi Fujii <fujii-satoshi@jp.fujitsu.com>2021-06-15 13:19:51 +0000
committerSatoshi Fujii <fujii-satoshi@jp.fujitsu.com>2021-06-18 07:40:41 +0000
commitd39331be3f55876a8a6fc31c5a10f2d68eefe0b0 (patch)
tree53a2009159f82d9e362f6d3204fb01a8c24756ee /miss_htbt_service/check_health.py
parent6c8c23c92cc9e01a652599ca9d97ffdcfd4f4883 (diff)
Reformat code
Use 4 spaces for indentation and put spaces for better readability. Signed-off-by: Satoshi Fujii <fujii-satoshi@jp.fujitsu.com> Issue-ID: DCAEGEN2-2833 Change-Id: I99aa4df83a32b077e2a3f336d17b6b64184c3c12
Diffstat (limited to 'miss_htbt_service/check_health.py')
-rw-r--r--miss_htbt_service/check_health.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/miss_htbt_service/check_health.py b/miss_htbt_service/check_health.py
index 4266273..739cd2b 100644
--- a/miss_htbt_service/check_health.py
+++ b/miss_htbt_service/check_health.py
@@ -39,7 +39,7 @@ class GetHandler(BaseHTTPRequestHandler):
'sys_version=%s' % self.sys_version,
'protocol_version=%s' % self.protocol_version,
'',
- ])
+ ])
self.send_response(200)
self.end_headers()
self.wfile.write(bytes(message, 'utf-8'))
@@ -56,9 +56,11 @@ class GetHandler(BaseHTTPRequestHandler):
self.wfile.write(bytes(data['health'], 'utf-8'))
return
+
if __name__ == '__main__':
from http.server import HTTPServer
- #from BaseHTTPServer import HTTPServer
+
+ # from BaseHTTPServer import HTTPServer
server = HTTPServer(("", 10002), GetHandler)
print('Starting server at http://localhost:10002')
server.serve_forever()