Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit c07982d

Browse files
committed
fix flavor on loadbalancer creation
1 parent 04ea371 commit c07982d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gcore/resource_gcore_loadbalancer.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ func resourceLoadBalancerCreate(ctx context.Context, d *schema.ResourceData, m i
201201
VipSubnetID: d.Get("vip_subnet_id").(string),
202202
}
203203

204+
lbFlavor := d.Get("flavor").(string)
205+
if len(lbFlavor) != 0 {
206+
opts.Flavor = &lbFlavor
207+
}
208+
204209
results, err := loadbalancers.Create(client, opts).Extract()
205210
if err != nil {
206211
return diag.FromErr(err)

0 commit comments

Comments
 (0)