From 4d6eef4bff33e13037a1ef34b2031ab3467ee80a Mon Sep 17 00:00:00 2001 From: Thomas Duval Date: Mon, 8 Aug 2016 13:52:04 +0200 Subject: Remove hardcoded host Change-Id: Id058e674190fe7e728d79a276145aac27661f365 --- keystone-moon/keystone/contrib/moon/controllers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/keystone-moon/keystone/contrib/moon/controllers.py b/keystone-moon/keystone/contrib/moon/controllers.py index b4413dbf..d3f1bfad 100644 --- a/keystone-moon/keystone/contrib/moon/controllers.py +++ b/keystone-moon/keystone/contrib/moon/controllers.py @@ -860,6 +860,7 @@ class MoonAuth(controller.V3Controller): return project def get_token(self, context, **kw): + master_url = CONF.moon.master data_auth = { "auth": { "identity": { @@ -894,7 +895,7 @@ class MoonAuth(controller.V3Controller): "title": "UnScopedToken" }} - req = requests.post("http://localhost:5000/v3/auth/tokens", + req = requests.post("{}/v3/auth/tokens".format(master_url), json=data_auth, headers={"Content-Type": "application/json"} ) -- cgit 1.2.3-korg