summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Farrellee <matt@redhat.com>2013-12-10 14:20:57 -0500
committerMatthew Farrellee <matt@redhat.com>2013-12-10 14:20:57 -0500
commit5ee43ecb080218317431ac08cf74d38358d33201 (patch)
tree01f3d1b8da45a9718d6a84c57f7e64616d205620
parent176bcf0a7c8cadc7d4764c1c5fd7d3f3a8da6657 (diff)
downloadpython-saharaclient-5ee43ecb080218317431ac08cf74d38358d33201.tar.gz
Fix call to catalog.get during endpoint discovery
Change-Id: Ic123e1e0200ca11804570fb9921e6d18e5413411
-rw-r--r--savannaclient/api/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/savannaclient/api/client.py b/savannaclient/api/client.py
index 9df6b89..d448baa 100644
--- a/savannaclient/api/client.py
+++ b/savannaclient/api/client.py
@@ -57,7 +57,7 @@ class Client(object):
project_name=project_name)
catalog = keystone.service_catalog.get_endpoints(service_type)
if service_type in catalog:
- for e_type, endpoint in catalog.get[service_type][0].items():
+ for e_type, endpoint in catalog.get(service_type)[0].items():
if str(e_type).lower() == str(endpoint_type).lower():
savanna_catalog_url = endpoint
break