Skip to content

Commit 1e9c621

Browse files
committed
spot_price
1 parent 2ce11b0 commit 1e9c621

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

iterative/aws/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func ResourceMachineCreate(ctx context.Context, d *schema.ResourceData, m interf
2525
keyPublic := d.Get("ssh_public").(string)
2626
securityGroup := d.Get("aws_security_group").(string)
2727
spot := d.Get("spot").(bool)
28-
spotPrice := d.Get("spotPrice").(float64)
28+
spotPrice := d.Get("spot_price").(float64)
2929
if ami == "" {
3030
ami = "iterative-cml"
3131
}

iterative/azure/provider.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func ResourceMachineCreate(ctx context.Context, d *schema.ResourceData, m interf
2828
keyPublic := d.Get("ssh_public").(string)
2929
hddSize := int32(d.Get("instance_hdd_size").(int))
3030
spot := d.Get("spot").(bool)
31-
spotPrice := d.Get("spotPrice").(float64)
31+
spotPrice := d.Get("spot_price").(float64)
3232
vmPriority := compute.Regular
3333
if spot {
3434
vmPriority = compute.Spot
@@ -273,11 +273,7 @@ func ResourceMachineDelete(ctx context.Context, d *schema.ResourceData, m interf
273273
if err != nil {
274274
return err
275275
}
276-
_, err = groupsClient.Delete(context.Background(), d.Id())
277-
if err != nil {
278-
return err
279-
}
280-
276+
groupsClient.Delete(context.Background(), d.Id())
281277
return err
282278
}
283279

iterative/resource_machine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func machineSchema() *map[string]*schema.Schema {
5454
Optional: true,
5555
Default: false,
5656
},
57-
"spotPrice": &schema.Schema{
57+
"spot_price": &schema.Schema{
5858
Type: schema.TypeFloat,
5959
ForceNew: true,
6060
Optional: true,

iterative/resource_runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func resourceRunner() *schema.Resource {
7878
Optional: true,
7979
Default: false,
8080
},
81-
"spotPrice": &schema.Schema{
81+
"spot_price": &schema.Schema{
8282
Type: schema.TypeFloat,
8383
ForceNew: true,
8484
Optional: true,

0 commit comments

Comments
 (0)