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: I4b14792c7eda4e489c53fdc95e40bde14a61c052changes/95/564495/2
parent
43c6e378f9
commit
2e209e917d
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue