mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
* Fixes #23388 Network provider masks too much * Fix trailing whitespace
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user