Have AnsibleModule raise a failure of git is missing in git_config module (#19676)

pull/18946/head
Matthew 8 years ago committed by John R Barker
parent 927218d99d
commit 45c57618b3

@ -171,9 +171,7 @@ def main():
required_one_of=[['list_all', 'name']],
supports_check_mode=True,
)
git_path = module.get_bin_path('git')
if not git_path:
module.fail_json(msg="Could not find git. Please ensure it is installed.")
git_path = module.get_bin_path('git', True)
params = module.params
# We check error message for a pattern, so we need to make sure the messages appear in the form we're expecting.

Loading…
Cancel
Save