Skip to content

Commit 60fe939

Browse files
authored
fix(organization_run_task): allow in-place updates to hmac_key (#1723)
1 parent 2217af9 commit 60fe939

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/provider/resource_tfe_organization_run_task.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ func (r *resourceOrgRunTask) Update(ctx context.Context, req resource.UpdateRequ
268268

269269
var state modelTFEOrganizationRunTaskV0
270270
// Read Terraform state into the model
271-
resp.Diagnostics.Append(req.Plan.Get(ctx, &state)...)
271+
resp.Diagnostics.Append(req.State.Get(ctx, &state)...)
272272
if resp.Diagnostics.HasError() {
273273
return
274274
}

internal/provider/resource_tfe_organization_run_task_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func TestAccTFEOrganizationRunTask_validateSchemaAttributeUrl(t *testing.T) {
3939
})
4040
}
4141

42-
func TestAccTFEOrganizationRunTask_create(t *testing.T) {
42+
func TestAccTFEOrganizationRunTask_basic(t *testing.T) {
4343
skipUnlessRunTasksDefined(t)
4444

4545
tfeClient, err := getClientUsingEnv()

0 commit comments

Comments
 (0)