Fix accidentally shadowed variable in upgrade cluster. (#3943)

This commit is contained in:
Matt Boersma 2018-10-03 11:06:17 -06:00 коммит произвёл Jack Francis
Родитель 7ce5b57c64
Коммит 9d51dff3d1
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -117,8 +117,9 @@ func (uc *UpgradeCluster) UpgradeCluster(subscriptionID uuid.UUID, kubeConfig, r
case strings.HasPrefix(upgradeVersion, "1.9."),
strings.HasPrefix(upgradeVersion, "1.10."),
strings.HasPrefix(upgradeVersion, "1.11."):
upgrader := &Upgrader{}
upgrader.Init(uc.Translator, uc.Logger, uc.ClusterTopology, uc.Client, kubeConfig, uc.StepTimeout, acsengineVersion)
u := &Upgrader{}
u.Init(uc.Translator, uc.Logger, uc.ClusterTopology, uc.Client, kubeConfig, uc.StepTimeout, acsengineVersion)
upgrader = u
default:
return uc.Translator.Errorf("Upgrade to Kubernetes version %s is not supported", upgradeVersion)