diff options
Diffstat (limited to 'ice_validator/tests/test_volume_resource_ids.py')
-rw-r--r-- | ice_validator/tests/test_volume_resource_ids.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ice_validator/tests/test_volume_resource_ids.py b/ice_validator/tests/test_volume_resource_ids.py index 3f0acda..a6a7334 100644 --- a/ice_validator/tests/test_volume_resource_ids.py +++ b/ice_validator/tests/test_volume_resource_ids.py @@ -97,7 +97,10 @@ def test_volume_resource_ids(heat_template): v3.get('get_resource')) if not volume_id: continue - volume_id = volume_id.lower() + if isinstance(volume_id, list): + volume_id = volume_id[0].lower() + else: + volume_id = volume_id.lower() if vm_type+"_" not in volume_id: invalid_volumes.append(volume_id) @@ -137,7 +140,10 @@ def test_volume_resource_ids(heat_template): properties['volume_id'].get('get_resource')) if not volume_id: continue - volume_id = volume_id.lower() + if isinstance(volume_id, list): + volume_id = volume_id[0].lower() + else: + volume_id = volume_id.lower() # do not test the case when the instance_uuid and # volume_id are not defined |