Skip to content

Commit 3a9b2e8

Browse files
committed
fix: updating existing tests for improved action_trigger error message
Signed-off-by: devhindo <[email protected]>
1 parent 94cd01e commit 3a9b2e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/terraform/context_plan_actions_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ resource "test_object" "a" {
967967
return diags.Append(&hcl.Diagnostic{
968968
Severity: hcl.DiagError,
969969
Summary: "Reference to non-existent action instance",
970-
Detail: "Action instance was not found in the current context.",
970+
Detail: "The referenced action could not be found. If the action uses 'count' or 'for_each', ensure you reference a specific instance, such as action.example[0] or action.example[\"key\"].",
971971
Subject: &hcl.Range{
972972
Filename: filepath.Join(m.Module.SourceDir, "main.tf"),
973973
Start: hcl.Pos{Line: 13, Column: 18, Byte: 224},
@@ -1002,7 +1002,7 @@ resource "test_object" "a" {
10021002
return diags.Append(&hcl.Diagnostic{
10031003
Severity: hcl.DiagError,
10041004
Summary: "Reference to non-existent action instance",
1005-
Detail: "Action instance was not found in the current context.",
1005+
Detail: "The referenced action could not be found. If the action uses 'count' or 'for_each', ensure you reference a specific instance, such as action.example[0] or action.example[\"key\"].",
10061006
Subject: &hcl.Range{
10071007
Filename: filepath.Join(m.Module.SourceDir, "main.tf"),
10081008
Start: hcl.Pos{Line: 13, Column: 18, Byte: 208},

0 commit comments

Comments
 (0)