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

Prevent odo fail if ~/.kube is not present #739

Merged
merged 1 commit into from
Sep 17, 2018

Conversation

surajnarwade
Copy link
Contributor

No description provided.

@cdrage
Copy link
Member

cdrage commented Sep 14, 2018

LGTM.

piyush-garg
piyush-garg previously approved these changes Sep 14, 2018
@surajnarwade surajnarwade changed the title Handle error in root.go [WIP]Handle error in root.go Sep 14, 2018
@surajnarwade
Copy link
Contributor Author

This will resolve #738

cdrage
cdrage previously approved these changes Sep 14, 2018
@surajnarwade surajnarwade changed the title [WIP]Handle error in root.go [WIP] Prevent odo fail if ~/.kube is not present Sep 14, 2018
@surajnarwade surajnarwade changed the title [WIP] Prevent odo fail if ~/.kube is not present Prevent odo fail if ~/.kube is not present Sep 17, 2018
Copy link
Contributor

@anmolbabu anmolbabu left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@syamgk syamgk left a comment

Choose a reason for hiding this comment

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

LGTM

@syamgk syamgk merged commit 773aa0d into redhat-developer:master Sep 17, 2018
@kadel
Copy link
Member

kadel commented Sep 17, 2018

No tests covering the original problem :-(


// Check whether directory present or not
_, err = os.Stat(filepath.Dir(configFile))
if os.IsNotExist(err) {
Copy link
Member

Choose a reason for hiding this comment

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

What if err is something else than IsNotExist?

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.

None yet

6 participants