You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2015/12/02 02:45:39 UTC
libcloud git commit: Add support for service_name in
_parse_service_catalog_auth_v3
Repository: libcloud
Updated Branches:
refs/heads/trunk b7d851f14 -> 990ecf7c6
Add support for service_name in _parse_service_catalog_auth_v3
Signed-off-by: Anthony Shaw <an...@gmail.com>
Closes #647
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/990ecf7c
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/990ecf7c
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/990ecf7c
Branch: refs/heads/trunk
Commit: 990ecf7c609f9fe53ab7508b0d345c726a1e4a49
Parents: b7d851f
Author: Steve Gregory <co...@steve-gregory.com>
Authored: Tue Dec 1 12:15:40 2015 -0700
Committer: Anthony Shaw <an...@gmail.com>
Committed: Wed Dec 2 12:45:44 2015 +1100
----------------------------------------------------------------------
libcloud/common/openstack_identity.py | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/990ecf7c/libcloud/common/openstack_identity.py
----------------------------------------------------------------------
diff --git a/libcloud/common/openstack_identity.py b/libcloud/common/openstack_identity.py
index 3eb0d14..ac90424 100644
--- a/libcloud/common/openstack_identity.py
+++ b/libcloud/common/openstack_identity.py
@@ -419,6 +419,7 @@ class OpenStackServiceCatalog(object):
for item in service_catalog:
service_type = item['type']
+ service_name = item.get('name', None)
entry_endpoints = []
for endpoint in item['endpoints']:
@@ -438,6 +439,7 @@ class OpenStackServiceCatalog(object):
entry_endpoints.append(entry_endpoint)
entry = OpenStackServiceCatalogEntry(service_type=service_type,
+ service_name=service_name,
endpoints=entry_endpoints)
entries.append(entry)