From 5abf053bac220b49539104bfa63805fd0829ca45 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 21 Mar 2018 12:54:09 +0100 Subject: Templating: Use localhost and port 8081 --- templating/templating.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templating/templating.py') 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() -- cgit v1.2.3