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
This commit is contained in:
Terry Howe
2014-06-25 09:40:44 -06:00
parent 34084339c8
commit a3baac3ee1

View File

@@ -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