summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins/action
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/plugins/action')
-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
9 files changed, 70 insertions, 8 deletions
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)