Revert "removing references to linked and lifecycle actions (#37530)" (#37532)

This reverts commit 6cdcf524f6.
pull/37533/head
Kristin Laemmert 9 months ago committed by GitHub
parent 6cdcf524f6
commit d02ce58ea4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -82,6 +82,27 @@ func (n *NodeValidatableAction) Execute(ctx EvalContext, _ walkOperation) tfdiag
return diags
}
// We currently only support unlinked actions, so we send a diagnostic for other types
if n.Schema.Lifecycle != nil {
diags = diags.Append(&hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Lifecycle actions are not supported",
Detail: "This version of Terraform does not support lifecycle actions",
Subject: n.Config.DeclRange.Ptr(),
})
return diags
}
if n.Schema.Linked != nil {
diags = diags.Append(&hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Linked actions are not supported",
Detail: "This version of Terraform does not support linked actions",
Subject: n.Config.DeclRange.Ptr(),
})
return diags
}
var configVal cty.Value
var valDiags tfdiags.Diagnostics
if n.Config.Config != nil {

Loading…
Cancel
Save