mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix synchronize unit test to handle checkmode
This commit is contained in:
parent
9209581565
commit
e121ff111d
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,7 @@ class FakeRunner(object):
|
|||
self.sudo = None
|
||||
self.remote_user = None
|
||||
self.private_key_file = None
|
||||
self.check = False
|
||||
|
||||
def _execute_module(self, conn, tmp, module_name, args, inject=None):
|
||||
self.executed_conn = conn
|
||||
|
@ -25,6 +26,9 @@ class FakeRunner(object):
|
|||
self.executed_args = args
|
||||
self.executed_inject = inject
|
||||
|
||||
def noop_on_check(self, inject):
|
||||
return self.check
|
||||
|
||||
class FakeConn(object):
|
||||
def __init__(self):
|
||||
self.host = None
|
||||
|
|
Loading…
Reference in a new issue