1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

update signature in network plugin (#19545)

Fix call to _update_module_args() to include module_name in the args
This commit is contained in:
Peter Sprygada 2016-12-20 07:07:42 -05:00 committed by GitHub
parent bcace3cfc4
commit f831ef692c

View file

@ -31,7 +31,8 @@ class ActionModule(ActionBase):
result = super(ActionModule, self).run(tmp, task_vars) result = super(ActionModule, self).run(tmp, task_vars)
del result['invocation']['module_args'] del result['invocation']['module_args']
self._update_module_args(self._task.args, task_vars) module_name = self._task.action
self._update_module_args(module_name, self._task.args, task_vars)
try: try:
_modify_module(self._task.args, self._connection) _modify_module(self._task.args, self._connection)