File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -637,14 +637,14 @@ func VerifyNotPaused(profile string, enable bool) error {
637637 if err != nil {
638638 return errors .Wrap (err , "check paused" )
639639 }
640- if runtimePaused {
641- action := "disable"
642- if enable {
643- action = "enable"
644- }
645- msg := fmt .Sprintf ("Can't %s addon on a paused cluster, please unpause the cluster first." , action )
646- out .Styled (style .Shrug , msg )
647- return errors .New (msg )
640+ if ! runtimePaused {
641+ return nil
648642 }
649- return nil
643+ action := "disable"
644+ if enable {
645+ action = "enable"
646+ }
647+ msg := fmt .Sprintf ("Can't %s addon on a paused cluster, please unpause the cluster first." , action )
648+ out .Styled (style .Shrug , msg )
649+ return errors .New (msg )
650650}
You can’t perform that action at this time.
0 commit comments