Review feedback
parent
fd37e6daec
commit
fd921b3997
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue