mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update cs_volume module to fix typo on force attribute (#2592)
fixes #2590
This commit is contained in:
parent
d8311b95e8
commit
d0c2db9c5b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue