From 6a3969ca6b2d8200d6040ad2dfbd587597e3ed71 Mon Sep 17 00:00:00 2001 From: Rob Cutmore Date: Mon, 21 Nov 2016 09:42:15 -0500 Subject: [PATCH] Git: indicate if remote url was changed or not (#5677) --- lib/ansible/modules/source_control/git.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ansible/modules/source_control/git.py b/lib/ansible/modules/source_control/git.py index a7cb4ae65c..7b07657689 100644 --- a/lib/ansible/modules/source_control/git.py +++ b/lib/ansible/modules/source_control/git.py @@ -984,8 +984,7 @@ def main(): remote_url_changed = remote_url and remote_url != repo and remote_url != unfrackgitpath(repo) else: remote_url_changed = set_remote_url(git_path, module, repo, dest, remote) - if remote_url_changed: - result.update(remote_url_changed=True) + result.update(remote_url_changed=remote_url_changed) if need_fetch: if module.check_mode: