Skip to content

Commit 1ad7aeb

Browse files
committed
fix diag check on data source
1 parent 10370a2 commit 1ad7aeb

File tree

2 files changed

+946
-897
lines changed

2 files changed

+946
-897
lines changed

internal/services/instance/data_source_instance_private_nic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func DataSourceInstancePrivateNICRead(ctx context.Context, d *schema.ResourceDat
8484
}
8585

8686
diags := ResourceInstancePrivateNICRead(ctx, d, m)
87-
if diags != nil {
87+
if len(diags) > 0 {
8888
return append(diags, diag.Errorf("failed to read private nic state")...)
8989
}
9090

0 commit comments

Comments
 (0)