Dont set default distro when OSType is Windows (#3950)

This commit is contained in:
David Url 2018-10-06 02:47:52 +02:00 коммит произвёл Cecile Robert-Michon
Родитель 514dfda3a8
Коммит 64a314a222
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -446,7 +446,7 @@ func setAgentProfileDefaults(a *api.Properties, isUpgrade, isScale bool) {
profile.AcceleratedNetworkingEnabledWindows = helpers.PointerToBool(api.DefaultAcceleratedNetworkingWindowsEnabled)
}
if profile.Distro == "" {
if profile.Distro == "" && profile.OSType != api.Windows {
if a.OrchestratorProfile.IsKubernetes() {
if profile.OSDiskSizeGB != 0 && profile.OSDiskSizeGB < api.VHDDiskSizeAKS {
profile.Distro = api.Ubuntu