Fix argspec for webfaction modules

* Fixing webfaction_domain "subdomains" argument parsing - must coerce to list, not string
* Fixing webfaction_db and webfaction_app "machine" argument default
This commit is contained in:
Diogo Baeder de Paula Pinto 2017-10-08 05:05:37 -03:00 committed by Toshio Kuratomi
parent d30554bc90
commit a97d8dff5a
3 changed files with 3 additions and 5 deletions

View file

@ -82,7 +82,6 @@ options:
machine:
description:
- The machine name to use (optional for accounts with only one machine)
default: False
'''
@ -116,7 +115,7 @@ def main():
port_open=dict(required=False, type='bool', default=False),
login_name=dict(required=True),
login_password=dict(required=True, no_log=True),
machine=dict(required=False, default=False),
machine=dict(required=False, default=None),
),
supports_check_mode=True
)

View file

@ -67,7 +67,6 @@ options:
machine:
description:
- The machine name to use (optional for accounts with only one machine)
default: false
'''
EXAMPLES = '''
@ -106,7 +105,7 @@ def main():
password=dict(required=False, default=None, no_log=True),
login_name=dict(required=True),
login_password=dict(required=True, no_log=True),
machine=dict(required=False, default=False),
machine=dict(required=False, default=None),
),
supports_check_mode=True
)

View file

@ -93,7 +93,7 @@ def main():
argument_spec=dict(
name=dict(required=True),
state=dict(required=False, choices=['present', 'absent'], default='present'),
subdomains=dict(required=False, default=[]),
subdomains=dict(required=False, default=[], type='list'),
login_name=dict(required=True),
login_password=dict(required=True, no_log=True),
),