Skip to content

Commit

Permalink
Fix uncaught exception on resource_domain GetDomain (#469)
Browse files Browse the repository at this point in the history
Co-authored-by: aviv.yaari <[email protected]>
  • Loading branch information
Aviv-Yaari and avivyaari-imperva authored Oct 29, 2024
1 parent 5679008 commit 580f380
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions incapsula/resource_domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ func resourceSingleDomainRead(d *schema.ResourceData, m interface{}) error {
return err
}

return fmt.Errorf("error getting domains (%d) for site (%s): %s",
d.Get("Id").(int),
d.Get("site_id"),
return fmt.Errorf("error getting domain (%s) for site (%s): %s",
id,
siteID,
out)
}

Expand Down

0 comments on commit 580f380

Please sign in to comment.