Merge "Fix volume_info result for SDK < 0.19"

This commit is contained in:
Zuul 2021-01-15 16:46:15 +00:00 committed by Gerrit Code Review
commit 049a2de725

View File

@ -133,7 +133,7 @@ class VolumeInfoModule(OpenStackModule):
status=self.params['status'],
)
result = self.conn.block_storage.volumes(**kwargs)
result = list(result)
result = [vol if isinstance(vol, dict) else vol.to_dict() for vol in result]
self.results.update({'volumes': result})