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
before_update hook always runs #632
Comments
The docs are not real clear but I believe the intended behavior is that hooks should only execute when there are stack updates. I have confirmed that all hooks behave this way except for the |
That's my take too. I'll try and dig into this more and see if this is a regresion or not. I've only observed this with versions 2.0.0 and 2.0.1 |
* Create change sets before any update operation to test for changes * Only execute before_update hook when change set is empty * Update tests to mock non-empty change sets Resolves Sceptre#632. Co-authored-by: Amy Robertson <amylrobertson@icloud.com> Co-authored-by: Chip Wolf <hello@chipwolf.uk> Co-authored-by: David Munn <dcwmunn@gmail.com> Signed-off-by: Brendan Devenney <brendan.devenney@cloudreach.com>
I agree with the proposed solution here, that But can we have another |
The intended behaviour is that the hooks are triggered before/after the command is initiated. I think the confusion is maybe related to #678 which will be fixed in 2.1.4 with better error handling which allows program to execute fully. |
Hi I just ran across some unexpected behavior today.
After I've deploy a stack(create) the
before_update
hook runs even if there are no updates to perform..The
after_update
hook however, only runs if there is updates performed.Is this intended behavior?
The text was updated successfully, but these errors were encountered: