mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Have AnsibleModule raise a failure of git is missing in git_config module (#19676)
This commit is contained in:
parent
927218d99d
commit
45c57618b3
1 changed files with 1 additions and 3 deletions
|
@ -171,9 +171,7 @@ def main():
|
||||||
required_one_of=[['list_all', 'name']],
|
required_one_of=[['list_all', 'name']],
|
||||||
supports_check_mode=True,
|
supports_check_mode=True,
|
||||||
)
|
)
|
||||||
git_path = module.get_bin_path('git')
|
git_path = module.get_bin_path('git', True)
|
||||||
if not git_path:
|
|
||||||
module.fail_json(msg="Could not find git. Please ensure it is installed.")
|
|
||||||
|
|
||||||
params = module.params
|
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.
|
# We check error message for a pattern, so we need to make sure the messages appear in the form we're expecting.
|
||||||
|
|
Loading…
Reference in a new issue