Skip to content

Commit

Permalink
Udpated read func to handle the attribute that was not received from …
Browse files Browse the repository at this point in the history
…NetScaler

Signed-off-by: Rohit Myali <[email protected]>
  • Loading branch information
rohit-myali committed Oct 14, 2024
1 parent 7c855a9 commit afbe34e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions citrixadc/resource_citrixadc_ip6tunnelparam.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (

"fmt"
"log"
"strconv"
)

func resourceCitrixAdcIp6tunnelparam() *schema.Resource {
Expand Down Expand Up @@ -89,8 +88,9 @@ func readIp6tunnelparamFunc(d *schema.ResourceData, meta interface{}) error {
return nil
}
d.Set("dropfrag", data["dropfrag"])
val, _ := strconv.Atoi(data["dropfragcputhreshold"].(string))
d.Set("dropfragcputhreshold", val)
// commenting as this attribute was not recieved from NetScaler
// val, _ := strconv.Atoi(data["dropfragcputhreshold"].(string))
// d.Set("dropfragcputhreshold", val)
d.Set("srcip", data["srcip"])
d.Set("srciproundrobin", data["srciproundrobin"])
d.Set("useclientsourceipv6", data["useclientsourceipv6"])
Expand Down

0 comments on commit afbe34e

Please sign in to comment.