diff --git a/cinder/volume/drivers/ibm/flashsystem_common.py b/cinder/volume/drivers/ibm/flashsystem_common.py index f8fa930dbf7..422b6bddc40 100644 --- a/cinder/volume/drivers/ibm/flashsystem_common.py +++ b/cinder/volume/drivers/ibm/flashsystem_common.py @@ -819,7 +819,7 @@ class FlashSystemDriver(san.SanDriver): {'vdisk_name': vdisk_name}) return else: - host_name = mapping_data.keys()[0] + host_name = list(mapping_data.keys())[0] else: if host_name not in mapping_data: LOG.error(_LE('_unmap_vdisk_from_host: No mapping of volume ' diff --git a/tests-py3.txt b/tests-py3.txt index d7a56090e0e..b31aa6488b7 100644 --- a/tests-py3.txt +++ b/tests-py3.txt @@ -52,6 +52,7 @@ cinder.tests.unit.test_hp_xp_fc cinder.tests.unit.test_hplefthand cinder.tests.unit.test_huawei_drivers cinder.tests.unit.test_huawei_drivers_compatibility +cinder.tests.unit.test_ibm_flashsystem cinder.tests.unit.test_ibm_flashsystem_iscsi cinder.tests.unit.test_ibm_xiv_ds8k cinder.tests.unit.test_ibmnas