-
Notifications
You must be signed in to change notification settings - Fork 5k
Add CommandRunner interface #1844
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
Changes from all commits
5a9ecbe
7f558f1
8d4e1d4
fd37e6d
fd921b3
cac45c3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,16 @@ var statusCmd = &cobra.Command{ | |
cs := state.None.String() | ||
ks := state.None.String() | ||
if ms == state.Running.String() { | ||
cs, err = cluster.GetLocalkubeStatus(api) | ||
h, err := api.Load(config.GetMachineName()) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is weird, but it looks like the permissions of this file changed to 755? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Permissions of what file? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Change the file permissions back. |
||
if err != nil { | ||
glog.Exitln("Error getting host") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should these be MaybeReportErrorandExit'ing? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
} | ||
cmdRunner, err := machine.GetCommandRunner(h) | ||
if err != nil { | ||
glog.Errorln("Error getting command runner interface") | ||
cmdUtil.MaybeReportErrorAndExit(err) | ||
} | ||
cs, err = cluster.GetLocalkubeStatus(cmdRunner) | ||
if err != nil { | ||
glog.Errorln("Error localkube status:", err) | ||
cmdUtil.MaybeReportErrorAndExit(err) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add maybeReportErrorAndExit