summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins/action/vyos.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/plugins/action/vyos.py')
-rw-r--r--lib/ansible/plugins/action/vyos.py9
1 files changed, 8 insertions, 1 deletions
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)