Merge "Allow tuples and sets in interface list"

This commit is contained in:
Zuul 2018-05-01 21:58:31 +00:00 committed by Gerrit Code Review
commit 3c118a43b3
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class ServiceCatalog(object):
def _get_interface_list(self, interface):
if not interface:
return []
if not isinstance(interface, list):
if not isinstance(interface, (list, tuple, set)):
interface = [interface]
return [self.normalize_interface(i) for i in interface]