diff --git a/cloud/openstack/os_server_volume.py b/cloud/openstack/os_server_volume.py index 35ad3287d6c..3355ee404d8 100644 --- a/cloud/openstack/os_server_volume.py +++ b/cloud/openstack/os_server_volume.py @@ -126,8 +126,8 @@ def main(): module.exit_json( changed=True, - id=volume.id, - attachments=volume.attachments, + id=volume['id'], + attachments=volume['attachments'], openstack=hostvars )