Skip to content

Commit 620d117

Browse files
committed
impr: don't store file content in state
1 parent 36a3758 commit 620d117

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

provider/file_resource.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ func (r *fileResource) Create(ctx context.Context, req resource.CreateRequest, r
162162
data.SHA1Sum = types.StringValue(res[0].SHA1sum)
163163
data.Location = types.StringValue(res[0].Location)
164164

165+
// Nullify content so it doesn’t go into state
166+
data.ContentB64 = types.StringNull()
167+
165168
if resp.Diagnostics.HasError() {
166169
return
167170
}

0 commit comments

Comments
 (0)