From 3be1d8a89267998bb8006ef1ced7a16f3a3e3a0e Mon Sep 17 00:00:00 2001 From: Daniel Schmidt Date: Wed, 3 Sep 2025 13:18:25 +0200 Subject: [PATCH] enable actions outside of experiments --- internal/configs/parser_config.go | 10 ++++------ internal/configs/resource.go | 10 ++++------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/internal/configs/parser_config.go b/internal/configs/parser_config.go index 31668a5c63..362e27c229 100644 --- a/internal/configs/parser_config.go +++ b/internal/configs/parser_config.go @@ -258,12 +258,10 @@ func parseConfigFile(body hcl.Body, diags hcl.Diagnostics, override, allowExperi } case "action": - if allowExperiments { - cfg, cfgDiags := decodeActionBlock(block) - diags = append(diags, cfgDiags...) - if cfg != nil { - file.Actions = append(file.Actions, cfg) - } + cfg, cfgDiags := decodeActionBlock(block) + diags = append(diags, cfgDiags...) + if cfg != nil { + file.Actions = append(file.Actions, cfg) } default: diff --git a/internal/configs/resource.go b/internal/configs/resource.go index ae24fbaf8a..d9dd08c846 100644 --- a/internal/configs/resource.go +++ b/internal/configs/resource.go @@ -300,12 +300,10 @@ func decodeResourceBlock(block *hcl.Block, override bool, allowExperiments bool) // decoded, but not yet used! case "action_trigger": - if allowExperiments { - at, atDiags := decodeActionTriggerBlock(block) - diags = append(diags, atDiags...) - if at != nil { - r.Managed.ActionTriggers = append(r.Managed.ActionTriggers, at) - } + at, atDiags := decodeActionTriggerBlock(block) + diags = append(diags, atDiags...) + if at != nil { + r.Managed.ActionTriggers = append(r.Managed.ActionTriggers, at) } default: