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

Fix validation and application timeout handling #346

Merged
merged 1 commit into from
May 18, 2021

Conversation

ordovicia
Copy link
Contributor

err returned from command.CombinedOutput() is an error of the command execution, not an error of the context.
To determine if the context was canceled, we should check out context.Err().

Signed-off-by: Hidehito Yabuuchi hdht.ybuc@gmail.com

Signed-off-by: Hidehito Yabuuchi <hdht.ybuc@gmail.com>
@hiddeco hiddeco added the bug Something isn't working label May 18, 2021
Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

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

Good catch! 🎣

@hiddeco hiddeco merged commit fe9e63b into fluxcd:main May 18, 2021
@ordovicia ordovicia deleted the fix-timeout-handling branch May 18, 2021 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants