From c29ae705f0f551f9507f939344172e8fe6ab5e0c Mon Sep 17 00:00:00 2001 From: David Shrewsbury Date: Thu, 23 Apr 2015 10:52:08 -0400 Subject: [PATCH] Update os_server_volume for latest shade The shade volume API was updated to return a dict rather than the object as returned by cinder. --- lib/ansible/modules/cloud/openstack/os_server_volume.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/openstack/os_server_volume.py b/lib/ansible/modules/cloud/openstack/os_server_volume.py index 35ad3287d6..3355ee404d 100644 --- a/lib/ansible/modules/cloud/openstack/os_server_volume.py +++ b/lib/ansible/modules/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 )