mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 18:37:36 -02:30
Change default values for dict parameter
Removing default of empty dict from variables param on group and host modules Make modules comply with updated sanity tests
This commit is contained in:
@@ -33,56 +33,67 @@ options:
|
||||
- List of organization names to export
|
||||
default: []
|
||||
type: list
|
||||
elements: str
|
||||
user:
|
||||
description:
|
||||
- List of user names to export
|
||||
default: []
|
||||
type: list
|
||||
elements: str
|
||||
team:
|
||||
description:
|
||||
- List of team names to export
|
||||
default: []
|
||||
type: list
|
||||
elements: str
|
||||
credential_type:
|
||||
description:
|
||||
- List of credential type names to export
|
||||
default: []
|
||||
type: list
|
||||
elements: str
|
||||
credential:
|
||||
description:
|
||||
- List of credential names to export
|
||||
default: []
|
||||
type: list
|
||||
elements: str
|
||||
notification_template:
|
||||
description:
|
||||
- List of notification template names to export
|
||||
default: []
|
||||
type: list
|
||||
elements: str
|
||||
inventory_script:
|
||||
description:
|
||||
- List of inventory script names to export
|
||||
default: []
|
||||
type: list
|
||||
elements: str
|
||||
inventory:
|
||||
description:
|
||||
- List of inventory names to export
|
||||
default: []
|
||||
type: list
|
||||
elements: str
|
||||
project:
|
||||
description:
|
||||
- List of project names to export
|
||||
default: []
|
||||
type: list
|
||||
elements: str
|
||||
job_template:
|
||||
description:
|
||||
- List of job template names to export
|
||||
default: []
|
||||
type: list
|
||||
elements: str
|
||||
workflow:
|
||||
description:
|
||||
- List of workflow names to export
|
||||
default: []
|
||||
type: list
|
||||
elements: str
|
||||
|
||||
requirements:
|
||||
- "ansible-tower-cli >= 3.3.0"
|
||||
@@ -136,17 +147,17 @@ except ImportError:
|
||||
def main():
|
||||
argument_spec = dict(
|
||||
all=dict(type='bool', default=False),
|
||||
credential=dict(type='list', default=[]),
|
||||
credential_type=dict(type='list', default=[]),
|
||||
inventory=dict(type='list', default=[]),
|
||||
inventory_script=dict(type='list', default=[]),
|
||||
job_template=dict(type='list', default=[]),
|
||||
notification_template=dict(type='list', default=[]),
|
||||
organization=dict(type='list', default=[]),
|
||||
project=dict(type='list', default=[]),
|
||||
team=dict(type='list', default=[]),
|
||||
user=dict(type='list', default=[]),
|
||||
workflow=dict(type='list', default=[]),
|
||||
credential=dict(type='list', default=[], elements='str'),
|
||||
credential_type=dict(type='list', default=[], elements='str'),
|
||||
inventory=dict(type='list', default=[], elements='str'),
|
||||
inventory_script=dict(type='list', default=[], elements='str'),
|
||||
job_template=dict(type='list', default=[], elements='str'),
|
||||
notification_template=dict(type='list', default=[], elements='str'),
|
||||
organization=dict(type='list', default=[], elements='str'),
|
||||
project=dict(type='list', default=[], elements='str'),
|
||||
team=dict(type='list', default=[], elements='str'),
|
||||
user=dict(type='list', default=[], elements='str'),
|
||||
workflow=dict(type='list', default=[], elements='str'),
|
||||
)
|
||||
|
||||
module = TowerModule(argument_spec=argument_spec, supports_check_mode=False)
|
||||
|
||||
Reference in New Issue
Block a user