aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@colazero.tele.tg18.gathering.org>2018-03-21 12:54:09 +0100
committerroot <root@colazero.tele.tg18.gathering.org>2018-03-21 12:54:09 +0100
commit5abf053bac220b49539104bfa63805fd0829ca45 (patch)
treec09e0eb9aba28df7e19feeae7bb6082c2a15358f
parent4eaeb1d7dc6095a2eec1b4711de94f907654547e (diff)
Templating: Use localhost and port 8081
-rwxr-xr-xtemplating/templating.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/templating/templating.py b/templating/templating.py
index 5156383..9794655 100755
--- a/templating/templating.py
+++ b/templating/templating.py
@@ -10,7 +10,7 @@ endpoints = "read/oplog read/snmp read/switches-management public/config public/
objects = dict()
def getEndpoint(endpoint):
- r = requests.get("http://gondul-front/api/%s" % endpoint)
+ r = requests.get("http://localhost:8080/api/%s" % endpoint)
if (r.status_code != 200):
raise Exception("Bad status code for endpoint %s: %s" % (endpoint, r.status_code))
return r.json()
@@ -81,7 +81,7 @@ class MyHandler(http.server.BaseHTTPRequestHandler):
self.generic(Mode.Post)
def run(server_class=http.server.HTTPServer, handler_class=http.server.BaseHTTPRequestHandler):
- server_address = ('', 8080)
+ server_address = ('localhost', 8081)
httpd = server_class(server_address, handler_class)
httpd.serve_forever()