mirror of
https://github.com/ansible/awx.git
synced 2026-04-04 17:55:06 -02:30
update lint
This commit is contained in:
@@ -139,7 +139,7 @@ options:
|
|||||||
description:
|
description:
|
||||||
- list of notifications to send on error
|
- list of notifications to send on error
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
@@ -191,7 +191,7 @@ def main():
|
|||||||
update_on_project_update=dict(type='bool'),
|
update_on_project_update=dict(type='bool'),
|
||||||
notification_templates_started=dict(type="list", elements='str'),
|
notification_templates_started=dict(type="list", elements='str'),
|
||||||
notification_templates_success=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'),
|
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
|
# 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(
|
module.create_or_update_if_needed(
|
||||||
inventory_source, inventory_source_fields,
|
inventory_source, inventory_source_fields,
|
||||||
endpoint='inventory_sources', item_type='inventory source',
|
endpoint='inventory_sources', item_type='inventory source',
|
||||||
associations=association_fields
|
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
|
# 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(
|
module.create_or_update_if_needed(
|
||||||
organization, org_fields,
|
organization, org_fields,
|
||||||
endpoint='organizations', item_type='organization',
|
endpoint='organizations', item_type='organization',
|
||||||
associations=association_fields,
|
associations=association_fields,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ options:
|
|||||||
description:
|
description:
|
||||||
- list of notifications to send on start
|
- list of notifications to send on start
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
@@ -253,7 +253,7 @@ def main():
|
|||||||
association_fields['notification_templates_approvals'] = []
|
association_fields['notification_templates_approvals'] = []
|
||||||
for item in notifications_approval:
|
for item in notifications_approval:
|
||||||
association_fields['notification_templates_approvals'].append(module.resolve_name_to_id('notification_templates', item))
|
association_fields['notification_templates_approvals'].append(module.resolve_name_to_id('notification_templates', item))
|
||||||
|
|
||||||
on_change = None
|
on_change = None
|
||||||
new_spec = module.params.get('survey')
|
new_spec = module.params.get('survey')
|
||||||
if new_spec:
|
if new_spec:
|
||||||
|
|||||||
Reference in New Issue
Block a user