diff --git a/pkg/cloudinit/common.go b/pkg/cloudinit/common.go index bd3320b8..88d0e108 100644 --- a/pkg/cloudinit/common.go +++ b/pkg/cloudinit/common.go @@ -73,7 +73,7 @@ func NewBaseCloudConfig(data BaseUserData) (CloudConfig, error) { snapInstall := data.SnapInstallData // Default to k8s version if snap install option is not set or empty. - if snapInstall == nil { + if snapInstall == nil || snapInstall.Option == "" { snapInstall = &SnapInstallData{ Option: InstallOptionChannel, Value: fmt.Sprintf("%d.%d-classic/stable", kubernetesVersion.Major(), kubernetesVersion.Minor()),