From ab6242bace8701a2c0c1e1d16e093c370e3cb1c7 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 19 Feb 2016 06:55:38 -0800 Subject: [PATCH] fixed rax_cdb argument spec now we pull the actual arguments and added aliases to be nice fixes #3075 --- lib/ansible/modules/cloud/rackspace/rax_cdb.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/cloud/rackspace/rax_cdb.py b/lib/ansible/modules/cloud/rackspace/rax_cdb.py index ea5b16528e..f4a1c4d27c 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_cdb.py +++ b/lib/ansible/modules/cloud/rackspace/rax_cdb.py @@ -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')