mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fixed rax_cdb argument spec
now we pull the actual arguments and added aliases to be nice fixes #3075
This commit is contained in:
parent
b58e16ed3d
commit
ab6242bace
1 changed files with 6 additions and 4 deletions
|
@ -43,11 +43,13 @@ options:
|
|||
- type of instance (i.e. MySQL, MariaDB, Percona)
|
||||
default: MySQL
|
||||
version_added: "2.0"
|
||||
aliases: ['type']
|
||||
cdb_version:
|
||||
description:
|
||||
- version of database (MySQL supports 5.1 and 5.6, MariaDB supports 10, Percona supports 5.6)
|
||||
choices: ['5.1', '5.6', '10']
|
||||
version_added: "2.0"
|
||||
aliases: ['version']
|
||||
state:
|
||||
description:
|
||||
- Indicate desired state of the resource
|
||||
|
@ -222,8 +224,8 @@ def main():
|
|||
name=dict(type='str', required=True),
|
||||
flavor=dict(type='int', default=1),
|
||||
volume=dict(type='int', default=2),
|
||||
cdb_type=dict(type='str', default='MySQL'),
|
||||
cdb_version=dict(type='str', default='5.6'),
|
||||
cdb_type=dict(type='str', default='MySQL', aliases=['type']),
|
||||
cdb_version=dict(type='str', default='5.6', aliases=['version']),
|
||||
state=dict(default='present', choices=['present', 'absent']),
|
||||
wait=dict(type='bool', default=False),
|
||||
wait_timeout=dict(type='int', default=300),
|
||||
|
@ -241,8 +243,8 @@ def main():
|
|||
name = module.params.get('name')
|
||||
flavor = module.params.get('flavor')
|
||||
volume = module.params.get('volume')
|
||||
cdb_type = module.params.get('type')
|
||||
cdb_version = module.params.get('version')
|
||||
cdb_type = module.params.get('cdb_type')
|
||||
cdb_version = module.params.get('cdb_version')
|
||||
state = module.params.get('state')
|
||||
wait = module.params.get('wait')
|
||||
wait_timeout = module.params.get('wait_timeout')
|
||||
|
|
Loading…
Reference in a new issue