Merge "test_create_server_from_volume_snapshot: assert dict is not empty before accessing a key"
This commit is contained in:
commit
88d84e951b
@ -196,6 +196,8 @@ class TestVolumeBootPattern(manager.ScenarioTest):
|
||||
# The created volume when creating a server from a snapshot
|
||||
created_volume = server_info['os-extended-volumes:volumes_attached']
|
||||
|
||||
self.assertNotEmpty(created_volume, "No volume attachment found.")
|
||||
|
||||
created_volume_info = self.volumes_client.show_volume(
|
||||
created_volume[0]['id'])['volume']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user