Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify scripts/check_galaxy to return more descriptive error message(s) #695

Merged
merged 11 commits into from
Aug 15, 2024
20 changes: 19 additions & 1 deletion src/ansible_builder/_target_scripts/check_galaxy
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

set -x

ansible-galaxy --version
command -v ansible-galaxy

if [ $? -ne 0 ]
then
Expand All @@ -43,4 +43,22 @@ EOF
exit 1
fi

ansible-galaxy --version

if [ $? -ne 0 ]
then
cat<<EOF
**********************************************************************
ERROR - 'ansible-galaxy' not functioning as expected

'ansible-galaxy' is installed, but running it returns an error.

For more information, you can try adding 'ansible-galaxy --version'
to 'prepend_galaxy' in 'additional_build_steps' and observing
the output.
**********************************************************************
EOF
exit 1
fi

exit 0
Loading