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
This commit is contained in:
parent
0652085f23
commit
63a3054c51
@ -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'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user