From a3baac3ee18927737c973d11aa60ebf2d3df79c3 Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Wed, 25 Jun 2014 09:40:44 -0600 Subject: [PATCH] Have the service catalog ignore empty urls The service catalog was ignoring None for URLs, but not empty strings. This change should hit both cases. Change-Id: I72ec344ff3f24fcd960023be5e39294c6b12ce34 --- openstack/auth/service_catalog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack/auth/service_catalog.py b/openstack/auth/service_catalog.py index e80d8c9b..3a465842 100644 --- a/openstack/auth/service_catalog.py +++ b/openstack/auth/service_catalog.py @@ -54,7 +54,7 @@ class ServiceCatalog(object): if not filtration.match_visibility(endpoint.get('interface')): continue url = endpoint.get('url') - if url is not None: + if url: eps += [url] return eps