mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-24 09:10:22 -07:00
Fixes #6298 and adds a sudo unit test for synchronize
This commit is contained in:
parent
6a615f18c5
commit
6129ea7566
2 changed files with 36 additions and 3 deletions
|
@ -173,6 +173,11 @@ class ActionModule(object):
|
|||
if self.runner.noop_on_check(inject):
|
||||
module_items += " CHECKMODE=True"
|
||||
|
||||
return self.runner._execute_module(conn, tmp, 'synchronize',
|
||||
module_items, inject=inject)
|
||||
# run the module and store the result
|
||||
result = self.runner._execute_module(conn, tmp, 'synchronize', module_items, inject=inject)
|
||||
|
||||
# reset the sudo property
|
||||
self.runner.sudo = self.original_sudo
|
||||
|
||||
return result
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue