Merge pull request #127 from rconradharris/issue126
Don't filter endpoints when filter_value is non-truthy.
This commit is contained in:
commit
16b083ddca
@ -40,7 +40,7 @@ class ServiceCatalog(object):
|
||||
|
||||
endpoints = service['endpoints']
|
||||
for endpoint in endpoints:
|
||||
if filter_value == None or endpoint[attr] == filter_value:
|
||||
if not filter_value or endpoint[attr] == filter_value:
|
||||
return endpoint['publicURL']
|
||||
|
||||
raise novaclient.exceptions.EndpointNotFound()
|
||||
|
Loading…
x
Reference in New Issue
Block a user