From 88975f197b1731cc991c9cfcd826d24c1e0d2d44 Mon Sep 17 00:00:00 2001 From: Avishay Traeger Date: Sun, 25 Aug 2013 10:45:14 +0300 Subject: [PATCH] Test WWNs with basestring Change to match Nova commit 52c0668548eb4a7e3536c241c9551cdf89f2d696 Change-Id: I96844ab293003e605412410969f8f26f5e9ac075 --- cinder/brick/initiator/connector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/brick/initiator/connector.py b/cinder/brick/initiator/connector.py index cb7434e1e..256e95f13 100644 --- a/cinder/brick/initiator/connector.py +++ b/cinder/brick/initiator/connector.py @@ -518,7 +518,7 @@ class FibreChannelConnector(InitiatorConnector): if isinstance(ports, list): for wwn in ports: wwns.append(str(wwn)) - elif isinstance(ports, str) or isinstance(ports, unicode): + elif isinstance(ports, basestring): wwns.append(str(ports)) # We need to look for wwns on every hba -- 2.45.2