diff --git a/pkg/azure/provider/helpers/driver.go b/pkg/azure/provider/helpers/driver.go index b173289c..2995ccde 100644 --- a/pkg/azure/provider/helpers/driver.go +++ b/pkg/azure/provider/helpers/driver.go @@ -671,7 +671,7 @@ func getDataDisks(specDataDisks []api.AzureDataDisk, vmName string) []*armcomput for _, specDataDisk := range specDataDisks { dataDiskName := utils.CreateDataDiskName(vmName, specDataDisk) caching := armcompute.CachingTypesNone - if utils.IsEmptyString(specDataDisk.Caching) { + if !utils.IsEmptyString(specDataDisk.Caching) { caching = armcompute.CachingTypes(specDataDisk.Caching) } dataDisk := &armcompute.DataDisk{