From 2491afc8b6a94835c8badd2920a8e1f64b7763fc Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Tue, 1 Dec 2015 23:32:52 -0500 Subject: [PATCH] fixes a syntax issue with module_utils/eapi.py This patch fixes an issue with the common args dict in the eapi shared module. This patch is required for the eapi shared module to be properly imported and is therefore should be applied to all instances. --- lib/ansible/module_utils/eapi.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/ansible/module_utils/eapi.py b/lib/ansible/module_utils/eapi.py index 0f41f73ef1b..6e6129798cd 100644 --- a/lib/ansible/module_utils/eapi.py +++ b/lib/ansible/module_utils/eapi.py @@ -32,14 +32,14 @@ from ansible.module_utils.eapi import * The eapi module provides the following common argument spec: - * host (str) - [Required] The IPv4 address or FQDN of the network device + * host (str) - The IPv4 address or FQDN of the network device * port (str) - Overrides the default port to use for the HTTP/S connection. The default values are 80 for HTTP and 443 for HTTPS - * username (str) - [Required] The username to use to authenticate - the HTTP/S connection. Aliases: username - * password (str) - [Required] The password to use to authenticate - the HTTP/S connection. Aliases: password + * username (str) - The username to use to authenticate the HTTP/S + connection. + * password (str) - The password to use to authenticate the HTTP/S + connection. * use_ssl (bool) - Specifies whether or not to use an encrypted (HTTPS) connection or not. The default value is False. * enable_mode (bool) - Specifies whether or not to enter `enable` mode @@ -61,7 +61,6 @@ EAPI_COMMON_ARGS = dict( password=dict(no_log=True), use_ssl=dict(default=True, type='bool'), enable_mode=dict(default=True, type='bool'), - enable_password=dict(no_log=True) enable_password=dict(no_log=True), device=dict() )