Revert "library: Fix new-style modules check mode"

This reverts commit bff2123430.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
4.2rc
Guillaume Abrioux 2020-11-27 08:53:55 +01:00 committed by Dimitri Savineau
parent 41c7c77817
commit 134ff59528
3 changed files with 6 additions and 6 deletions

View File

@ -166,14 +166,14 @@ def run_module():
changed=False, changed=False,
stdout='', stdout='',
stderr='', stderr='',
rc=0, rc='',
start='', start='',
end='', end='',
delta='', delta='',
) )
if module.check_mode: if module.check_mode:
module.exit_json(**result) return result
startd = datetime.datetime.now() startd = datetime.datetime.now()

View File

@ -530,14 +530,14 @@ def run_module():
changed=changed, changed=changed,
stdout='', stdout='',
stderr='', stderr='',
rc=0, rc='',
start='', start='',
end='', end='',
delta='', delta='',
) )
if module.check_mode: if module.check_mode:
module.exit_json(**result) return result
startd = datetime.datetime.now() startd = datetime.datetime.now()

View File

@ -566,14 +566,14 @@ def run_module():
changed=False, changed=False,
stdout='', stdout='',
stderr='', stderr='',
rc=0, rc='',
start='', start='',
end='', end='',
delta='', delta='',
) )
if module.check_mode: if module.check_mode:
module.exit_json(**result) return result
# start execution # start execution
startd = datetime.datetime.now() startd = datetime.datetime.now()