[actions/shutdown] fix missing default value
This commit is contained in:
@@ -30,7 +30,10 @@ func (s Shutdown) Execute() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s Shutdown) Create(config internal.ActionConfig, c ActionResultChan) (Action, error) {
|
func (s Shutdown) Create(config internal.ActionConfig, c ActionResultChan) (Action, error) {
|
||||||
var result Shutdown
|
result := Shutdown{
|
||||||
|
Timeout: "now",
|
||||||
|
}
|
||||||
|
|
||||||
err := json.Unmarshal(config.Options, &result)
|
err := json.Unmarshal(config.Options, &result)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user