summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ansible/module_utils/eos.py2
-rw-r--r--lib/ansible/module_utils/ios.py2
-rw-r--r--lib/ansible/module_utils/iosxr.py2
-rw-r--r--lib/ansible/module_utils/junos.py2
-rw-r--r--lib/ansible/module_utils/vyos.py2
-rw-r--r--lib/ansible/plugins/action/dellos10.py9
-rw-r--r--lib/ansible/plugins/action/dellos6.py10
-rw-r--r--lib/ansible/plugins/action/dellos9.py9
-rw-r--r--lib/ansible/plugins/action/eos.py9
-rw-r--r--lib/ansible/plugins/action/ios.py9
-rw-r--r--lib/ansible/plugins/action/iosxr.py5
-rw-r--r--lib/ansible/plugins/action/junos.py9
-rw-r--r--lib/ansible/plugins/action/sros.py9
-rw-r--r--lib/ansible/plugins/action/vyos.py9
14 files changed, 75 insertions, 13 deletions
diff --git a/lib/ansible/module_utils/eos.py b/lib/ansible/module_utils/eos.py
index be361bc802..0c8555cdf9 100644
--- a/lib/ansible/module_utils/eos.py
+++ b/lib/ansible/module_utils/eos.py
@@ -53,7 +53,7 @@ eos_argument_spec = {
'validate_certs': dict(type='bool', default=True),
'timeout': dict(type='int'),
- 'provider': dict(type='dict', no_log=True),
+ 'provider': dict(type='dict'),
'transport': dict(choices=['cli', 'eapi'])
}
diff --git a/lib/ansible/module_utils/ios.py b/lib/ansible/module_utils/ios.py
index 35a11e2fdd..21df837d1c 100644
--- a/lib/ansible/module_utils/ios.py
+++ b/lib/ansible/module_utils/ios.py
@@ -40,7 +40,7 @@ ios_argument_spec = {
'authorize': dict(fallback=(env_fallback, ['ANSIBLE_NET_AUTHORIZE']), type='bool'),
'auth_pass': dict(fallback=(env_fallback, ['ANSIBLE_NET_AUTH_PASS']), no_log=True),
'timeout': dict(type='int'),
- 'provider': dict(type='dict', no_log=True),
+ 'provider': dict(type='dict'),
}
def check_args(module, warnings):
diff --git a/lib/ansible/module_utils/iosxr.py b/lib/ansible/module_utils/iosxr.py
index 9b2deacf9c..570b904b34 100644
--- a/lib/ansible/module_utils/iosxr.py
+++ b/lib/ansible/module_utils/iosxr.py
@@ -39,7 +39,7 @@ iosxr_argument_spec = {
'password': dict(fallback=(env_fallback, ['ANSIBLE_NET_PASSWORD']), no_log=True),
'ssh_keyfile': dict(fallback=(env_fallback, ['ANSIBLE_NET_SSH_KEYFILE']), type='path'),
'timeout': dict(type='int'),
- 'provider': dict(type='dict', no_log=True)
+ 'provider': dict(type='dict')
}
def check_args(module, warnings):
diff --git a/lib/ansible/module_utils/junos.py b/lib/ansible/module_utils/junos.py
index e0827c437c..21fed91bd4 100644
--- a/lib/ansible/module_utils/junos.py
+++ b/lib/ansible/module_utils/junos.py
@@ -37,7 +37,7 @@ junos_argument_spec = {
'password': dict(fallback=(env_fallback, ['ANSIBLE_NET_PASSWORD']), no_log=True),
'ssh_keyfile': dict(fallback=(env_fallback, ['ANSIBLE_NET_SSH_KEYFILE']), type='path'),
'timeout': dict(type='int', default=10),
- 'provider': dict(type='dict', no_log=True),
+ 'provider': dict(type='dict'),
'transport': dict()
}
diff --git a/lib/ansible/module_utils/vyos.py b/lib/ansible/module_utils/vyos.py
index f60b548674..bc86c464ee 100644
--- a/lib/ansible/module_utils/vyos.py
+++ b/lib/ansible/module_utils/vyos.py
@@ -40,7 +40,7 @@ vyos_argument_spec = {
'ssh_keyfile': dict(fallback=(env_fallback, ['ANSIBLE_NET_SSH_KEYFILE']), type='path'),
'timeout': dict(type='int'),
- 'provider': dict(type='dict', no_log=True),
+ 'provider': dict(type='dict'),
}
def check_args(module, warnings):
diff --git a/lib/ansible/plugins/action/dellos10.py b/lib/ansible/plugins/action/dellos10.py
index c656ad250f..102ca6feae 100644
--- a/lib/ansible/plugins/action/dellos10.py
+++ b/lib/ansible/plugins/action/dellos10.py
@@ -92,7 +92,14 @@ class ActionModule(_ActionModule):
self._play_context.become = False
self._play_context.become_method = None
- return super(ActionModule, self).run(tmp, task_vars)
+ result = super(ActionModule, self).run(tmp, task_vars)
+
+ try:
+ del result['invocation']['module_args']['provider']
+ except KeyError:
+ pass
+
+ return result
def _get_socket_path(self, play_context):
ssh = connection_loader.get('ssh', class_only=True)
diff --git a/lib/ansible/plugins/action/dellos6.py b/lib/ansible/plugins/action/dellos6.py
index a296ccfddf..dfbc349afe 100644
--- a/lib/ansible/plugins/action/dellos6.py
+++ b/lib/ansible/plugins/action/dellos6.py
@@ -87,7 +87,15 @@ class ActionModule(_ActionModule):
if self._play_context.become_method == 'enable':
self._play_context.become = False
self._play_context.become_method = None
- return super(ActionModule, self).run(tmp, task_vars)
+
+ result = super(ActionModule, self).run(tmp, task_vars)
+
+ try:
+ del result['invocation']['module_args']['provider']
+ except KeyError:
+ pass
+
+ return result
def _get_socket_path(self, play_context):
ssh = connection_loader.get('ssh', class_only=True)
diff --git a/lib/ansible/plugins/action/dellos9.py b/lib/ansible/plugins/action/dellos9.py
index 3fff897830..6222da4f21 100644
--- a/lib/ansible/plugins/action/dellos9.py
+++ b/lib/ansible/plugins/action/dellos9.py
@@ -92,7 +92,14 @@ class ActionModule(_ActionModule):
self._play_context.become = False
self._play_context.become_method = None
- return super(ActionModule, self).run(tmp, task_vars)
+ result = super(ActionModule, self).run(tmp, task_vars)
+
+ try:
+ del result['invocation']['module_args']['provider']
+ except KeyError:
+ pass
+
+ return result
def _get_socket_path(self, play_context):
ssh = connection_loader.get('ssh', class_only=True)
diff --git a/lib/ansible/plugins/action/eos.py b/lib/ansible/plugins/action/eos.py
index 6107b2fe2f..f3cd2dfe41 100644
--- a/lib/ansible/plugins/action/eos.py
+++ b/lib/ansible/plugins/action/eos.py
@@ -117,7 +117,14 @@ class ActionModule(_ActionModule):
self._task.args['provider'] = provider
- return super(ActionModule, self).run(tmp, task_vars)
+ result = super(ActionModule, self).run(tmp, task_vars)
+
+ try:
+ del result['invocation']['module_args']['provider']
+ except KeyError:
+ pass
+
+ return result
def _get_socket_path(self, play_context):
ssh = connection_loader.get('ssh', class_only=True)
diff --git a/lib/ansible/plugins/action/ios.py b/lib/ansible/plugins/action/ios.py
index 976f81f8dd..0a1cafbaf5 100644
--- a/lib/ansible/plugins/action/ios.py
+++ b/lib/ansible/plugins/action/ios.py
@@ -87,7 +87,14 @@ class ActionModule(_ActionModule):
self._play_context.become = False
self._play_context.become_method = None
- return super(ActionModule, self).run(tmp, task_vars)
+ result = super(ActionModule, self).run(tmp, task_vars)
+
+ try:
+ del result['invocation']['module_args']['provider']
+ except KeyError:
+ pass
+
+ return result
def _get_socket_path(self, play_context):
ssh = connection_loader.get('ssh', class_only=True)
diff --git a/lib/ansible/plugins/action/iosxr.py b/lib/ansible/plugins/action/iosxr.py
index 18c88ab6e9..b5e1daa0ad 100644
--- a/lib/ansible/plugins/action/iosxr.py
+++ b/lib/ansible/plugins/action/iosxr.py
@@ -84,6 +84,11 @@ class ActionModule(_ActionModule):
result = super(ActionModule, self).run(tmp, task_vars)
+ try:
+ del result['invocation']['module_args']['provider']
+ except KeyError:
+ pass
+
return result
def _get_socket_path(self, play_context):
diff --git a/lib/ansible/plugins/action/junos.py b/lib/ansible/plugins/action/junos.py
index d347940bc3..5dae42f2c0 100644
--- a/lib/ansible/plugins/action/junos.py
+++ b/lib/ansible/plugins/action/junos.py
@@ -102,7 +102,14 @@ class ActionModule(_ActionModule):
task_vars['ansible_socket'] = socket_path
- return super(ActionModule, self).run(tmp, task_vars)
+ result = super(ActionModule, self).run(tmp, task_vars)
+
+ try:
+ del result['invocation']['module_args']['provider']
+ except KeyError:
+ pass
+
+ return result
def _get_socket_path(self, play_context):
ssh = connection_loader.get('ssh', class_only=True)
diff --git a/lib/ansible/plugins/action/sros.py b/lib/ansible/plugins/action/sros.py
index c3fa842c5b..9d3a31fba6 100644
--- a/lib/ansible/plugins/action/sros.py
+++ b/lib/ansible/plugins/action/sros.py
@@ -78,7 +78,14 @@ class ActionModule(_ActionModule):
task_vars['ansible_socket'] = socket_path
- return super(ActionModule, self).run(tmp, task_vars)
+ result = super(ActionModule, self).run(tmp, task_vars)
+
+ try:
+ del result['invocation']['module_args']['provider']
+ except KeyError:
+ pass
+
+ return result
def _get_socket_path(self, play_context):
ssh = connection_loader.get('ssh', class_only=True)
diff --git a/lib/ansible/plugins/action/vyos.py b/lib/ansible/plugins/action/vyos.py
index 2720d1fa90..0ee7dcd092 100644
--- a/lib/ansible/plugins/action/vyos.py
+++ b/lib/ansible/plugins/action/vyos.py
@@ -80,7 +80,14 @@ class ActionModule(_ActionModule):
task_vars['ansible_socket'] = socket_path
- return super(ActionModule, self).run(tmp, task_vars)
+ result = super(ActionModule, self).run(tmp, task_vars)
+
+ try:
+ del result['invocation']['module_args']['provider']
+ except KeyError:
+ pass
+
+ return result
def _get_socket_path(self, play_context):
ssh = connection_loader.get('ssh', class_only=True)