Fix a bug when calling Interface. 15/41515/1
authorasteroide <thomas.duval@orange.com>
Mon, 11 Sep 2017 09:15:07 +0000 (11:15 +0200)
committerasteroide <thomas.duval@orange.com>
Mon, 11 Sep 2017 09:15:07 +0000 (11:15 +0200)
Change-Id: I60b32a7296c8df6d3d320e093faa388037492031

moonv4/moon_wrapper/moon_wrapper/http_server.py

index 7db6bee..f50213c 100644 (file)
@@ -57,7 +57,7 @@ def HTTPServer(host, port):
             _object = __get_object(target, credentials)
             _project_id = __get_project_id(target, credentials)
             logger.info("GET with args {} / {} - {} - {}".format(_project_id, _subject, _object, rule))
-            _url = "http://authz/{}:{}/{}/{}/{}/{}".format(
+            _url = "http://{}:{}/authz/{}/{}/{}/{}".format(
                 interface_hostname,
                 interface_port,
                 _project_id,