Merge "Fix for volume manage test" into mcp/caracal
diff --git a/tempest/api/volume/admin/test_volume_manage.py b/tempest/api/volume/admin/test_volume_manage.py
index 609ec15..3d7cb15 100644
--- a/tempest/api/volume/admin/test_volume_manage.py
+++ b/tempest/api/volume/admin/test_volume_manage.py
@@ -79,8 +79,11 @@
new_vol_id)['volume']
self.assertNotIn(new_vol_id, [org_vol_id])
self.assertEqual(new_vol_info['name'], new_vol_name)
- for key in ['size',
- 'volume_type',
- 'availability_zone',
- 'os-vol-host-attr:host']:
+ check_attrs = ['size',
+ 'volume_type',
+ 'availability_zone'
+ ]
+ if CONF.volume.storage_protocol != 'ceph':
+ check_attrs.append('os-vol-host-attr:host')
+ for key in check_attrs:
self.assertEqual(new_vol_info[key], org_vol_info[key])