diff options
Diffstat (limited to 'lib/ansible/plugins/action/eos.py')
-rw-r--r-- | lib/ansible/plugins/action/eos.py | 9 |
1 files changed, 8 insertions, 1 deletions
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) |