summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Cutmore <rcutmore@users.noreply.github.com>2016-11-21 09:42:15 -0500
committerjctanner <tanner.jc@gmail.com>2016-11-21 09:42:15 -0500
commit5902bf57915e4adc600745d6c0f36d787f051c73 (patch)
tree998b8f83d435505bf09fd7f39dc40752ff27de77
parent3acd6f45194e6248518aee6d600798c8d0d57b4d (diff)
downloadansible-modules-core-5902bf57915e4adc600745d6c0f36d787f051c73.tar.gz
Git: indicate if remote url was changed or not (#5677)
-rw-r--r--source_control/git.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/source_control/git.py b/source_control/git.py
index a7cb4ae6..7b076576 100644
--- a/source_control/git.py
+++ b/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: