[actions/shutdown] fix missing default value

This commit is contained in:
2023-10-31 21:01:54 +01:00
parent 4b43bd1338
commit b0723ae708

View File

@@ -30,7 +30,10 @@ func (s Shutdown) Execute() {
}
func (s Shutdown) Create(config internal.ActionConfig, c ActionResultChan) (Action, error) {
var result Shutdown
result := Shutdown{
Timeout: "now",
}
err := json.Unmarshal(config.Options, &result)
if err != nil {