From f294aabcc93935c42ef8d595a70c20bc4af2edbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ely=C3=A9zer=20Rezende?= Date: Fri, 5 Mar 2021 14:53:31 -0500 Subject: [PATCH] Linter fixes for Execution Environments module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix linter for the recently added Execution Environments module Signed-off-by: Elyézer Rezende --- awx_collection/plugins/modules/tower_ad_hoc_command.py | 1 + .../plugins/modules/tower_execution_environment.py | 6 +++--- awx_collection/plugins/modules/tower_export.py | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/awx_collection/plugins/modules/tower_ad_hoc_command.py b/awx_collection/plugins/modules/tower_ad_hoc_command.py index 2d099b2b1d..4ee416ccdf 100644 --- a/awx_collection/plugins/modules/tower_ad_hoc_command.py +++ b/awx_collection/plugins/modules/tower_ad_hoc_command.py @@ -132,6 +132,7 @@ def main(): wait=dict(default=False, type='bool'), interval=dict(default=1.0, type='float'), timeout=dict(default=None, type='int'), + execution_environment=dict(), ) # Create a module for ourselves diff --git a/awx_collection/plugins/modules/tower_execution_environment.py b/awx_collection/plugins/modules/tower_execution_environment.py index 320141721d..b728810323 100644 --- a/awx_collection/plugins/modules/tower_execution_environment.py +++ b/awx_collection/plugins/modules/tower_execution_environment.py @@ -16,7 +16,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', DOCUMENTATION = ''' --- module: tower_execution_environment -author: "Shane McDonald" +author: "Shane McDonald (@shanemcd)" short_description: create, update, or destroy Execution Environments in Ansible Tower. description: - Create, update, or destroy Execution Environments in Ansible Tower. See @@ -54,7 +54,7 @@ options: description: - determine image pull behavior choices: ["always", "missing", "never"] - default: '' + default: 'missing' type: str extends_documentation_fragment: awx.awx.auth ''' @@ -108,7 +108,7 @@ def main(): if pull: new_fields['pull'] = pull - + # Attempt to look up the related items the user specified (these will fail the module if not found) organization = module.params.get('organization') if organization: diff --git a/awx_collection/plugins/modules/tower_export.py b/awx_collection/plugins/modules/tower_export.py index ac7ff5a499..e3b2fa37d6 100644 --- a/awx_collection/plugins/modules/tower_export.py +++ b/awx_collection/plugins/modules/tower_export.py @@ -47,6 +47,10 @@ options: description: - credential name to export type: str + execution_environments: + description: + - execution environment name to export + type: str notification_templates: description: - notification template name to export