cloudstack: cs_domain: rename argument cleanup to clean_up for consistency

This commit is contained in:
Rene Moser 2015-08-23 00:09:38 +02:00
parent 94614d0454
commit 4856701457

View file

@ -37,7 +37,7 @@ options:
- Network domain for networks in the domain. - Network domain for networks in the domain.
required: false required: false
default: null default: null
cleanup: clean_up:
description: description:
- Clean up all domain resources like child domains and accounts. - Clean up all domain resources like child domains and accounts.
- Considered on C(state=absent). - Considered on C(state=absent).
@ -225,7 +225,7 @@ class AnsibleCloudStackDomain(AnsibleCloudStack):
if not self.module.check_mode: if not self.module.check_mode:
args = {} args = {}
args['id'] = domain['id'] args['id'] = domain['id']
args['cleanup'] = self.module.params.get('cleanup') args['cleanup'] = self.module.params.get('clean_up')
res = self.cs.deleteDomain(**args) res = self.cs.deleteDomain(**args)
if 'errortext' in res: if 'errortext' in res:
@ -244,7 +244,7 @@ def main():
path = dict(required=True), path = dict(required=True),
state = dict(choices=['present', 'absent'], default='present'), state = dict(choices=['present', 'absent'], default='present'),
network_domain = dict(default=None), network_domain = dict(default=None),
cleanup = dict(choices=BOOLEANS, default=False), clean_up = dict(choices=BOOLEANS, default=False),
poll_async = dict(choices=BOOLEANS, default=True), poll_async = dict(choices=BOOLEANS, default=True),
api_key = dict(default=None), api_key = dict(default=None),
api_secret = dict(default=None, no_log=True), api_secret = dict(default=None, no_log=True),