diff options
author | Ole Mathias Aa. Heggem <msbone1995@gmail.com> | 2018-03-21 13:27:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-21 13:27:46 +0100 |
commit | 2b3beb9f93fc6486169e47f96995a97dd64baf2a (patch) | |
tree | 7151c023924254d863387f484829b503759359ea /templating | |
parent | 8f1eeeabe7b33d224ed9a8e19cc16825c144a0f6 (diff) | |
parent | 5abf053bac220b49539104bfa63805fd0829ca45 (diff) |
Merge branch 'master' into network-firstclass
Diffstat (limited to 'templating')
-rwxr-xr-x | templating/templating.py | 4 |
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() |