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

Fixes #5866: ncf API hooks don't always fail on errors #567

Conversation

peckpeck
Copy link
Member

@@ -56,6 +69,7 @@ git add "ncf_techniques/${TECHNIQUE}"
git commit -q -m "Commit meta Technique ${TECHNIQUE}"

# Reload technique library, bypass the ssl verification since we are on localhost
STEP="Reloading technique library"
curl -s -f -k "https://localhost/rudder/api/techniqueLibrary/reload"

if [ "$?" -eq 22 ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can never happen now this script is set -e. Please remove this if statement, but include the (better) error message below in the STEP variable above.

@peckpeck peckpeck force-pushed the bug_5866/ncf_api_hooks_don_t_always_fail_on_errors branch from bb18f8f to b70e987 Compare December 19, 2014 14:30
@peckpeck
Copy link
Member Author

@jooooooon updated

jooooooon added a commit that referenced this pull request Jan 15, 2015
…ways_fail_on_errors

Fixes #5866: ncf API hooks don't always fail on errors
@jooooooon jooooooon merged commit c19c64a into Normation:branches/rudder/2.11 Jan 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants