Skip to content

Commit

Permalink
Fix: disable a disabled addon cause error
Browse files Browse the repository at this point in the history
  • Loading branch information
Song Shukun committed Feb 27, 2020
1 parent 3cf2c9b commit 884c30a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/addons/addons.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ func enableOrDisableAddon(name, val, profile string) error {

if alreadySet {
glog.Warningf("addon %s should already be in state %v", name, val)
if !enable {
return nil
}
}

if name == "istio" && enable {
Expand Down

0 comments on commit 884c30a

Please sign in to comment.