Skip to content

Commit e3a56df

Browse files
committed
feat(SNI_Load_Balancer): testing on staging and prod for SNI routing for ALB
1 parent 7cbbd08 commit e3a56df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ibm/service/vpc/resource_ibm_is_lb_listener_policy.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,9 @@ func resourceIBMISLBListenerPolicyCreate(context context.Context, d *schema.Reso
401401
}
402402

403403
action := d.Get(isLBListenerPolicyAction).(string)
404+
if action == "forward" {
405+
action = "forward_to_pool"
406+
}
404407
priority := int64(d.Get(isLBListenerPolicyPriority).(int))
405408

406409
//user-defined name for this policy.
@@ -487,7 +490,7 @@ func lbListenerPolicyCreate(d *schema.ResourceData, meta interface{}, lbID, list
487490
}
488491
} else if actionChk.(string) == "forward_to_listener" {
489492
if targetIDSet {
490-
//User can set listener id as combination of lbID/listenerID, parse and get the listenerID
493+
//user can set listener id as combination of lbID/listenerID, parse and get the listenerID
491494
listenerID, err := getListenerID(d.Get(isLBListenerPolicyListenerID).(string))
492495
if err != nil {
493496
return diag.FromErr(err)

0 commit comments

Comments
 (0)