Skip to content

Commit

Permalink
fix crash caused by wrong indexing string
Browse files Browse the repository at this point in the history
  • Loading branch information
chiradeep committed May 17, 2018
1 parent 0d46a2e commit 7645227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netscaler/resource_rnat.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ func updateRnatsFunc(d *schema.ResourceData, meta interface{}) error {

for _, val := range add {
rnat := val.(map[string]interface{})
log.Printf("[DEBUG] netscaler-provider: going to add rnat %s", rnat["rnatname"].(string))
log.Printf("[DEBUG] netscaler-provider: going to add rnat %s", rnat["rnatsname"].(string))
err := createSingleRnat(rnat, meta)
if err != nil {
log.Printf("[DEBUG] netscaler-provider: error adding rnat %s", rnat["rnatname"].(string))
log.Printf("[DEBUG] netscaler-provider: error adding rnat %s", rnat["rnatsname"].(string))
}
}
}
Expand Down

0 comments on commit 7645227

Please sign in to comment.