Skip to content

Commit 07bceb1

Browse files
committed
Fix failing unit tests
1 parent 40faef1 commit 07bceb1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/resources/resource_source.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ func sourceRead(ctx context.Context, d *schema.ResourceData, meta interface{}) d
6161
return diag.FromErr(err)
6262
}
6363

64-
// Set the webhook URL if this is a webhook source
65-
if err := d.Set("url", s.WebhookUrl.String); err != nil {
66-
return diag.FromErr(err)
64+
// Set the webhook URL only if this is a webhook source
65+
if s.WebhookUrl.Valid {
66+
_ = d.Set("url", s.WebhookUrl.String)
6767
}
6868

6969
if v, ok := d.GetOk("envelope"); ok {

0 commit comments

Comments
 (0)