Skip to content

Commit b04062e

Browse files
uturunku1ctrombley
andauthored
Update internal/provider/resource_tfe_notification_configuration.go
Co-authored-by: Chris Trombley <[email protected]>
1 parent b9667d6 commit b04062e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/provider/resource_tfe_notification_configuration.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ func (r *resourceTFENotificationConfiguration) Create(ctx context.Context, req r
317317

318318
// Add triggers set to the options struct
319319
var triggers []types.String
320-
if diags := plan.Triggers.ElementsAs(ctx, &triggers, true); diags != nil && diags.HasError() {
321-
resp.Diagnostics.Append(diags...)
320+
resp.Diagnostics.Append(plan.Triggers.ElementsAs(ctx, &triggers, true)...)
321+
if resp.Diagnostics.HasError() {
322322
return
323323
}
324324
options.Triggers = []tfe.NotificationTriggerType{}

0 commit comments

Comments
 (0)