From 2e209e917d472e73ad8634d9ce28c4284c06ce9f Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Thu, 26 Apr 2018 07:41:02 -0500 Subject: [PATCH] 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 --- keystoneauth1/access/service_catalog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keystoneauth1/access/service_catalog.py b/keystoneauth1/access/service_catalog.py index 147fb551..3aeb6ed4 100644 --- a/keystoneauth1/access/service_catalog.py +++ b/keystoneauth1/access/service_catalog.py @@ -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]