aboutsummaryrefslogtreecommitdiffstats
path: root/templating/templating.py
diff options
context:
space:
mode:
Diffstat (limited to 'templating/templating.py')
-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()