Skip to content

Commit

Permalink
Fix issue #1289
Browse files Browse the repository at this point in the history
  • Loading branch information
VaishnaviGopal authored and hkantare committed Apr 14, 2020
1 parent fcb9b8e commit 7a56c7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ibm/resource_ibm_is_lb_listener.go
Expand Up @@ -115,7 +115,7 @@ func resourceIBMISLBListenerCreate(d *schema.ResourceData, meta interface{}) err
var connLimit int64

if limit, ok := d.GetOk(isLBListenerConnectionLimit); ok {
connLimit = limit.(int64)
connLimit = int64(limit.(int))
}

client := lbaas.NewLoadBalancerClient(sess)
Expand Down
4 changes: 2 additions & 2 deletions ibm/resource_ibm_is_lb_listener_test.go
Expand Up @@ -14,8 +14,8 @@ import (

func TestAccIBMISLBListener_basic(t *testing.T) {
var lb *models.Listener
vpcname := fmt.Sprintf("terraformLBLisuat-vpc-%d", acctest.RandInt())
subnetname := fmt.Sprintf("terraformLBLisuat-subnet-%d", acctest.RandInt())
vpcname := fmt.Sprintf("tflblisuat-vpc-%d", acctest.RandInt())
subnetname := fmt.Sprintf("tflblisuat-subnet-%d", acctest.RandInt())
lbname := fmt.Sprintf("tflblisuat%d", acctest.RandInt())

protocol1 := "http"
Expand Down

0 comments on commit 7a56c7e

Please sign in to comment.