From 5a47cd8f94a14a94275a7e0803f67507772e4435 Mon Sep 17 00:00:00 2001 From: excalibrax Date: Thu, 14 May 2020 11:14:12 -0500 Subject: [PATCH] update lint --- awx_collection/plugins/modules/tower_inventory_source.py | 6 +++--- awx_collection/plugins/modules/tower_organization.py | 2 +- .../plugins/modules/tower_workflow_job_template.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/awx_collection/plugins/modules/tower_inventory_source.py b/awx_collection/plugins/modules/tower_inventory_source.py index 359c7d9ce2..99b9dbb00e 100644 --- a/awx_collection/plugins/modules/tower_inventory_source.py +++ b/awx_collection/plugins/modules/tower_inventory_source.py @@ -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 ) diff --git a/awx_collection/plugins/modules/tower_organization.py b/awx_collection/plugins/modules/tower_organization.py index c823bf5638..84f56c6c7f 100644 --- a/awx_collection/plugins/modules/tower_organization.py +++ b/awx_collection/plugins/modules/tower_organization.py @@ -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, ) diff --git a/awx_collection/plugins/modules/tower_workflow_job_template.py b/awx_collection/plugins/modules/tower_workflow_job_template.py index 825e0018ba..fa4ed61674 100644 --- a/awx_collection/plugins/modules/tower_workflow_job_template.py +++ b/awx_collection/plugins/modules/tower_workflow_job_template.py @@ -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: