enable actions outside of experiments

pull/37623/head
Daniel Schmidt 8 months ago
parent df113486a1
commit 3be1d8a892

@ -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:

@ -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:

Loading…
Cancel
Save