Skip to content

Commit

Permalink
Merge pull request #6817 from sshukun/fix-addon-disable
Browse files Browse the repository at this point in the history
Fix: disable a disabled addon cause error
  • Loading branch information
medyagh authored Feb 28, 2020
2 parents 3cb2b36 + 884c30a commit 256b90a
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 256b90a

Please sign in to comment.