1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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.
This commit is contained in:
Peter Sprygada 2015-12-01 23:32:52 -05:00
parent 8c630406c9
commit 2491afc8b6

View file

@ -32,14 +32,14 @@ from ansible.module_utils.eapi import *
The eapi module provides the following common argument spec: 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 * port (str) - Overrides the default port to use for the HTTP/S
connection. The default values are 80 for HTTP and connection. The default values are 80 for HTTP and
443 for HTTPS 443 for HTTPS
* username (str) - [Required] The username to use to authenticate * username (str) - The username to use to authenticate the HTTP/S
the HTTP/S connection. Aliases: username connection.
* password (str) - [Required] The password to use to authenticate * password (str) - The password to use to authenticate the HTTP/S
the HTTP/S connection. Aliases: password connection.
* use_ssl (bool) - Specifies whether or not to use an encrypted (HTTPS) * use_ssl (bool) - Specifies whether or not to use an encrypted (HTTPS)
connection or not. The default value is False. connection or not. The default value is False.
* enable_mode (bool) - Specifies whether or not to enter `enable` mode * enable_mode (bool) - Specifies whether or not to enter `enable` mode
@ -61,7 +61,6 @@ EAPI_COMMON_ARGS = dict(
password=dict(no_log=True), password=dict(no_log=True),
use_ssl=dict(default=True, type='bool'), use_ssl=dict(default=True, type='bool'),
enable_mode=dict(default=True, type='bool'), enable_mode=dict(default=True, type='bool'),
enable_password=dict(no_log=True)
enable_password=dict(no_log=True), enable_password=dict(no_log=True),
device=dict() device=dict()
) )