File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ var addonsDisableCmd = &cobra.Command{
33
33
if len (args ) != 1 {
34
34
exit .Message (reason .Usage , "usage: minikube addons disable ADDON_NAME" )
35
35
}
36
- err := addons .CheckPaused (ClusterFlagValue (), false )
36
+ err := addons .VerifyNotPaused (ClusterFlagValue (), false )
37
37
if err != nil {
38
38
exit .Error (reason .InternalAddonDisablePaused , "disable failed" , err )
39
39
}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ var addonsEnableCmd = &cobra.Command{
39
39
if len (args ) != 1 {
40
40
exit .Message (reason .Usage , "usage: minikube addons enable ADDON_NAME" )
41
41
}
42
- err := addons .CheckPaused (ClusterFlagValue (), true )
42
+ err := addons .VerifyNotPaused (ClusterFlagValue (), true )
43
43
if err != nil {
44
44
exit .Error (reason .InternalAddonEnablePaused , "enabled failed" , err )
45
45
}
Original file line number Diff line number Diff line change @@ -581,8 +581,8 @@ func UpdateConfigToDisable(cc *config.ClusterConfig) {
581
581
}
582
582
}
583
583
584
- // CheckPaused checks whether the cluster is paused before enable/disable an addon.
585
- func CheckPaused (profile string , enable bool ) error {
584
+ // VerifyNotPaused verifies the cluster is not paused before enable/disable an addon.
585
+ func VerifyNotPaused (profile string , enable bool ) error {
586
586
klog .Info ("checking whether the cluster is paused" )
587
587
588
588
cc , err := config .Load (profile )
You can’t perform that action at this time.
0 commit comments