aboutsummaryrefslogtreecommitdiffstats
path: root/keystone-moon/keystone
diff options
context:
space:
mode:
authorThomas Duval <thomas.duval@orange.com>2016-08-08 13:52:04 +0200
committerThomas Duval <thomas.duval@orange.com>2016-08-08 13:52:04 +0200
commit4d6eef4bff33e13037a1ef34b2031ab3467ee80a (patch)
treea857ce8ea657c28f40b498600ac385da4081c074 /keystone-moon/keystone
parente24eec03210b9efc996840fb2e269abe570b46e3 (diff)
Remove hardcoded host
Change-Id: Id058e674190fe7e728d79a276145aac27661f365
Diffstat (limited to 'keystone-moon/keystone')
-rw-r--r--keystone-moon/keystone/contrib/moon/controllers.py3
1 files changed, 2 insertions, 1 deletions
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"}
)