Skip to content

Fix validation and application timeout handling#346

Merged
hiddeco merged 1 commit intofluxcd:mainfrom
ordovicia:fix-timeout-handling
May 18, 2021
Merged

Fix validation and application timeout handling#346
hiddeco merged 1 commit intofluxcd:mainfrom
ordovicia:fix-timeout-handling

Conversation

@ordovicia
Copy link
Copy Markdown
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
Copy Markdown
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