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
pull/37575/head
Diogo Baeder de Paula Pinto 7 years ago committed by Toshio Kuratomi
parent d30554bc90
commit a97d8dff5a

@ -82,7 +82,6 @@ options:
machine: machine:
description: description:
- The machine name to use (optional for accounts with only one machine) - 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), port_open=dict(required=False, type='bool', default=False),
login_name=dict(required=True), login_name=dict(required=True),
login_password=dict(required=True, no_log=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 supports_check_mode=True
) )

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

@ -93,7 +93,7 @@ def main():
argument_spec=dict( argument_spec=dict(
name=dict(required=True), name=dict(required=True),
state=dict(required=False, choices=['present', 'absent'], default='present'), 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_name=dict(required=True),
login_password=dict(required=True, no_log=True), login_password=dict(required=True, no_log=True),
), ),

Loading…
Cancel
Save