From 913049004849c9c7d4bb917f57d23a9f938d8fed Mon Sep 17 00:00:00 2001 From: Yuji Konishi Date: Thu, 24 May 2018 04:36:00 +0900 Subject: [PATCH] Fix update parameter (#36022) --- lib/ansible/modules/source_control/subversion.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/source_control/subversion.py b/lib/ansible/modules/source_control/subversion.py index 3b2547d31b1..c4c5fbba8e7 100644 --- a/lib/ansible/modules/source_control/subversion.py +++ b/lib/ansible/modules/source_control/subversion.py @@ -256,7 +256,9 @@ def main(): # Order matters. Need to get local mods before switch to avoid false # positives. Need to switch before revert to ensure we are reverting to # correct repo. - if module.check_mode or not update: + if not update: + module.exit_json(changed=False) + if module.check_mode: if svn.has_local_mods() and not force: module.fail_json(msg="ERROR: modified files exist in the repository.") check, before, after = svn.needs_update()