Fixes #23388 Network provider masks too much (#23418)

* Fixes #23388 Network provider masks too much

* Fix trailing whitespace
This commit is contained in:
Chris Alfonso 2017-04-07 14:34:47 -06:00 committed by GitHub
parent 0cf1e8e061
commit d4bd54d3b8
14 changed files with 75 additions and 13 deletions

View file

@ -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)