Review feedback

pull/1844/head
Matt Rickard 2017-08-23 12:16:13 -07:00
parent fd37e6daec
commit fd921b3997
2 changed files with 8 additions and 3 deletions

View File

@ -108,11 +108,15 @@ func EnableOrDisableAddon(name string, val string) error {
}
if enable {
for _, addon := range addon.Assets {
cmd.Copy(addon)
if err := cmd.Copy(addon); err != nil {
return errors.Wrapf(err, "error enabling addon %s: %s", addon.AssetName)
}
}
} else {
for _, addon := range addon.Assets {
cmd.Remove(addon)
if err := cmd.Remove(addon); err != nil {
return errors.Wrapf(err, "error disabling addon %s: %s", addon.AssetName)
}
}
}
return nil

View File

@ -68,7 +68,8 @@ var statusCmd = &cobra.Command{
}
cmdRunner, err := machine.GetCommandRunner(h)
if err != nil {
glog.Exitln("Error getting command runner interface")
glog.Errorln("Error getting command runner interface")
cmdUtil.MaybeReportErrorAndExit(err)
}
cs, err = cluster.GetLocalkubeStatus(cmdRunner)
if err != nil {