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(k8s): don't throw if api returns 404 when checking object status #354

Merged
merged 1 commit into from
Nov 1, 2018

Conversation

eysi09
Copy link
Collaborator

@eysi09 eysi09 commented Oct 31, 2018

Circumvents #353

// We handle 404s specifically since this might be invoked before some objects are deployed
// See: https://github.com/garden-io/garden/issues/353
// TODO: Figure out whether we'll need this check after the issue #353 above has been resolved
if (err.code && err.code === 404) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Simplify to if (err.code === 404) { ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oc, 'twas late.

@eysi09 eysi09 merged commit 7bec220 into master Nov 1, 2018
@eysi09 eysi09 deleted the catch-404s branch November 1, 2018 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants