diff --git a/cluster-autoscaler/cloudprovider/azure/azure_scale_set.go b/cluster-autoscaler/cloudprovider/azure/azure_scale_set.go index 3468eadb914f..4daa57ae5130 100644 --- a/cluster-autoscaler/cloudprovider/azure/azure_scale_set.go +++ b/cluster-autoscaler/cloudprovider/azure/azure_scale_set.go @@ -360,7 +360,7 @@ func (scaleSet *ScaleSet) Nodes() ([]string, error) { return nil, err } - result := make([]string, len(vms)) + result := make([]string, 0, len(vms)) for i := range vms { if len(*vms[i].ID) == 0 { continue