aboutsummaryrefslogtreecommitdiffstats
path: root/keystone-moon/keystone
diff options
context:
space:
mode:
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"}
)