X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c1a84bf6f6c570cc632a5ba8c6406543e2206e3a..a9be3117466506dffc39617be1c58406c5914e4b:/lib/cloud/azure/azure.go diff --git a/lib/cloud/azure/azure.go b/lib/cloud/azure/azure.go index 100d87c337..1ff0798ea6 100644 --- a/lib/cloud/azure/azure.go +++ b/lib/cloud/azure/azure.go @@ -528,13 +528,12 @@ func (az *azureInstanceSet) Create( }, } - var maxPrice float64 if instanceType.Preemptible { // Setting maxPrice to -1 is the equivalent of paying spot price, up to the // normal price. This means the node will not be pre-empted for price // reasons. It may still be pre-empted for capacity reasons though. And // Azure offers *no* SLA on spot instances. - maxPrice = -1 + var maxPrice float64 = -1 vmParameters.VirtualMachineProperties.Priority = compute.Spot vmParameters.VirtualMachineProperties.EvictionPolicy = compute.Delete vmParameters.VirtualMachineProperties.BillingProfile = &compute.BillingProfile{MaxPrice: &maxPrice}