From: Guillaume Abrioux Date: Fri, 27 Nov 2020 07:53:55 +0000 (+0100) Subject: Revert "library: Fix new-style modules check mode" X-Git-Tag: v4.0.41~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=134ff59528ba3f3a056c5dfacfb714b5defe8562;p=ceph-ansible.git Revert "library: Fix new-style modules check mode" This reverts commit bff21234303b9086dd8a352b52f2f47c5f3d2251. Signed-off-by: Guillaume Abrioux --- diff --git a/library/ceph_crush.py b/library/ceph_crush.py index 6ada0b459..7891b666a 100644 --- a/library/ceph_crush.py +++ b/library/ceph_crush.py @@ -166,14 +166,14 @@ def run_module(): changed=False, stdout='', stderr='', - rc=0, + rc='', start='', end='', delta='', ) if module.check_mode: - module.exit_json(**result) + return result startd = datetime.datetime.now() diff --git a/library/ceph_key.py b/library/ceph_key.py index 77bf40fa0..bc92e1494 100644 --- a/library/ceph_key.py +++ b/library/ceph_key.py @@ -530,14 +530,14 @@ def run_module(): changed=changed, stdout='', stderr='', - rc=0, + rc='', start='', end='', delta='', ) if module.check_mode: - module.exit_json(**result) + return result startd = datetime.datetime.now() diff --git a/library/ceph_volume.py b/library/ceph_volume.py index f21241fcf..2e0d794ce 100644 --- a/library/ceph_volume.py +++ b/library/ceph_volume.py @@ -566,14 +566,14 @@ def run_module(): changed=False, stdout='', stderr='', - rc=0, + rc='', start='', end='', delta='', ) if module.check_mode: - module.exit_json(**result) + return result # start execution startd = datetime.datetime.now()