From 18eb40ec148c14eb4611b712539842afcff6ac19 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Thu, 1 May 2025 22:24:11 +0200 Subject: [PATCH] fix(actions): make sure to initialize a config (#109) Signed-off-by: Ettore Di Giacinto --- services/actions.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/actions.go b/services/actions.go index bcae181..d78b67b 100644 --- a/services/actions.go +++ b/services/actions.go @@ -108,6 +108,10 @@ func Action(name, agentName string, config map[string]string, pool *state.AgentP var a types.Action var err error + if config == nil { + config = map[string]string{} + } + switch name { case ActionCustom: a, err = action.NewCustom(config, "")