mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
update lint
This commit is contained in:
parent
ca992246d1
commit
5a47cd8f94
@ -139,7 +139,7 @@ options:
|
||||
description:
|
||||
- list of notifications to send on error
|
||||
type: list
|
||||
elements: str
|
||||
elements: str
|
||||
extends_documentation_fragment: awx.awx.auth
|
||||
'''
|
||||
|
||||
@ -191,7 +191,7 @@ def main():
|
||||
update_on_project_update=dict(type='bool'),
|
||||
notification_templates_started=dict(type="list", elements='str'),
|
||||
notification_templates_success=dict(type="list", elements='str'),
|
||||
notification_templates_error=dict(type="list", elements='str'),
|
||||
notification_templates_error=dict(type="list", elements='str'),
|
||||
state=dict(choices=['present', 'absent'], default='present'),
|
||||
)
|
||||
|
||||
@ -279,7 +279,7 @@ def main():
|
||||
|
||||
# If the state was present we can let the module build or update the existing inventory_source, this will return on its own
|
||||
module.create_or_update_if_needed(
|
||||
inventory_source, inventory_source_fields,
|
||||
inventory_source, inventory_source_fields,
|
||||
endpoint='inventory_sources', item_type='inventory source',
|
||||
associations=association_fields
|
||||
)
|
||||
|
||||
@ -173,7 +173,7 @@ def main():
|
||||
|
||||
# If the state was present and we can let the module build or update the existing organization, this will return on its own
|
||||
module.create_or_update_if_needed(
|
||||
organization, org_fields,
|
||||
organization, org_fields,
|
||||
endpoint='organizations', item_type='organization',
|
||||
associations=association_fields,
|
||||
)
|
||||
|
||||
@ -132,7 +132,7 @@ options:
|
||||
description:
|
||||
- list of notifications to send on start
|
||||
type: list
|
||||
elements: str
|
||||
elements: str
|
||||
extends_documentation_fragment: awx.awx.auth
|
||||
'''
|
||||
|
||||
@ -253,7 +253,7 @@ def main():
|
||||
association_fields['notification_templates_approvals'] = []
|
||||
for item in notifications_approval:
|
||||
association_fields['notification_templates_approvals'].append(module.resolve_name_to_id('notification_templates', item))
|
||||
|
||||
|
||||
on_change = None
|
||||
new_spec = module.params.get('survey')
|
||||
if new_spec:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user