Skip to content

Commit

Permalink
spot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGOrtega committed Jul 12, 2021
1 parent c4bd9f3 commit af544a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions iterative/gcp/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ func ResourceMachineCreate(ctx context.Context, d *schema.ResourceData, m interf
}

instanceHostMaintenanceBehavior := "MIGRATE"
if instanceIsPreemptible {
instanceHostMaintenanceBehavior = "TERMINATE"
}

instanceAccelerators := []*gcp_compute.AcceleratorConfig{}
if instanceType["accelerator"]["count"] != "0" {
acceleratorType, err := service.AcceleratorTypes.Get(project, instanceZone, instanceType["accelerator"]["type"]).Do()
Expand Down

0 comments on commit af544a2

Please sign in to comment.