Fix for volume multiattach check
Related-prod: PRODX-26176
Change-Id: I29fe0f1c216ff39adef38969bef44b2aa2f47f76
(cherry picked from commit fdde7914a520fc40fc1566de4b847813cd98524b)
(cherry picked from commit eaef3c6c1fe725575d2f6995ab941e26c3897d0b)
diff --git a/tempest/api/volume/test_volumes_negative.py b/tempest/api/volume/test_volumes_negative.py
index c405a50..bc29246 100644
--- a/tempest/api/volume/test_volumes_negative.py
+++ b/tempest/api/volume/test_volumes_negative.py
@@ -268,8 +268,7 @@
"""Test reserving already reserved volume should fail"""
# Skip test if the volume has "multiattach" property
- volume = self.volumes_client.show_volume(self.volume['id'])
- if volume['multiattach']:
+ if self.volume['multiattach']:
raise self.skipException('Reserving multiattach volumes is not'
' supported.')