pull/37389/head
Daniel Schmidt 7 months ago
parent 632ccc0c28
commit cc18ab401d

@ -835,7 +835,7 @@ action "test_lifecycle" "hello" {}
return tfdiags.Diagnostics{}.Append(&hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Lifecycle actions are not supported",
Detail: "This versio of Terraform does not support lifecycle actions",
Detail: "This version of Terraform does not support lifecycle actions",
Subject: &hcl.Range{
Filename: filepath.Join(m.Module.SourceDir, "main.tf"),
Start: hcl.Pos{Line: 2, Column: 1, Byte: 1},
@ -854,7 +854,7 @@ action "test_linked" "hello" {}
return tfdiags.Diagnostics{}.Append(&hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Linked actions are not supported",
Detail: "This versio of Terraform does not support linked actions",
Detail: "This version of Terraform does not support linked actions",
Subject: &hcl.Range{
Filename: filepath.Join(m.Module.SourceDir, "main.tf"),
Start: hcl.Pos{Line: 2, Column: 1, Byte: 1},

@ -61,7 +61,7 @@ func (n *NodeActionDeclarationInstance) Execute(ctx EvalContext, _ walkOperation
diags = diags.Append(&hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Lifecycle actions are not supported",
Detail: "This versio of Terraform does not support lifecycle actions",
Detail: "This version of Terraform does not support lifecycle actions",
Subject: n.Config.DeclRange.Ptr(),
})
return diags
@ -71,7 +71,7 @@ func (n *NodeActionDeclarationInstance) Execute(ctx EvalContext, _ walkOperation
diags = diags.Append(&hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Linked actions are not supported",
Detail: "This versio of Terraform does not support linked actions",
Detail: "This version of Terraform does not support linked actions",
Subject: n.Config.DeclRange.Ptr(),
})
return diags

@ -584,7 +584,7 @@ func (n *NodePlannableResourceInstance) planActionTriggers(ctx EvalContext, chan
absActionInstAddrs = append(absActionInstAddrs, a.Absolute(n.Path()))
} else if a, ok := ref.Subject.(addrs.Action); ok {
// If the reference action is expanded we get a single action address,
// otherwise all expanded action addresses. This auto-expansion feature is syntacic
// otherwise all expanded action addresses. This auto-expansion feature is syntactic
// sugar for the user so that they can refer to all of an expanded action's
// instances
absActionInstAddrs = ctx.Actions().GetActionInstanceKeys(a.Absolute(n.Path()))

Loading…
Cancel
Save