Allow tuples and sets in interface list

While writing an SDK patch, I accidentaly sent a tuple for interface and
things went boom. We already accept a list, so go ahead and accept
tuples and sets too.

Change-Id: I4b14792c7eda4e489c53fdc95e40bde14a61c052
Monty Taylor 2018-04-26 07:41:02 -05:00
parent 43c6e378f9
commit 2e209e917d
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
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]