From 63a3054c51f406ccdf0e773606eda1dc9137398f Mon Sep 17 00:00:00 2001 From: Matthew Edmonds Date: Fri, 10 Aug 2018 15:53:44 -0400 Subject: [PATCH] Make solidfire code py3-compatible The solidfire volume driver was using dict.iteritems, which has been removed in python 3 [1]. This replaces that usage with dict.items, which also works in python 2.7, as recommended. [1] https://wiki.python.org/moin/Python3.0#Built-In_Changes Change-Id: I905cb8ec9dbfb2e66de6e14eb3263e8245791e49 --- cinder/volume/drivers/solidfire.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/volume/drivers/solidfire.py b/cinder/volume/drivers/solidfire.py index 8d8076d9493..65f4eaaf200 100644 --- a/cinder/volume/drivers/solidfire.py +++ b/cinder/volume/drivers/solidfire.py @@ -1369,7 +1369,7 @@ class SolidFireDriver(san.SanISCSIDriver): if volume['volume_type_id']: for setting in self._extract_sf_attributes_from_extra_specs( volume['volume_type_id']): - for k, v in setting.iteritems(): + for k, v in setting.items(): attributes[k] = v vname = '%s%s' % (self.configuration.sf_volume_prefix, volume['id'])