From d0c2db9c5b6b347641923683287c3d4d25a81e40 Mon Sep 17 00:00:00 2001 From: lorijoan Date: Wed, 20 Jul 2016 12:57:35 +0100 Subject: [PATCH] Update cs_volume module to fix typo on force attribute (#2592) fixes #2590 --- lib/ansible/modules/extras/cloud/cloudstack/cs_volume.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/cloud/cloudstack/cs_volume.py b/lib/ansible/modules/extras/cloud/cloudstack/cs_volume.py index 0836ef9513..f9d31ffd84 100644 --- a/lib/ansible/modules/extras/cloud/cloudstack/cs_volume.py +++ b/lib/ansible/modules/extras/cloud/cloudstack/cs_volume.py @@ -389,7 +389,7 @@ class AnsibleCloudStackVolume(AnsibleCloudStack): volume = self.get_volume() if volume: - if 'attached' in volume and not self.module.param.get('force'): + if 'attached' in volume and not self.module.params.get('force'): self.module.fail_json(msg="Volume '%s' is attached, use force=true for detaching and removing the volume." % volume.get('name')) self.result['changed'] = True