1
0
mirror of https://github.com/rancher/os.git synced 2025-05-01 04:44:06 +00:00

Fix error with ProxmoxVE shutdown

This commit is contained in:
psayker 2020-01-29 13:34:59 +10:00 committed by niusmallnan
parent 397977b0af
commit 2ed9befdf2

View File

@ -214,7 +214,7 @@ func shutdown(c *cli.Context) error {
// cannot contain slashes. // cannot contain slashes.
appName := filepath.Base(c.App.Name) appName := filepath.Base(c.App.Name)
if appName == "shutdown" && timeArg != "" { if appName == "shutdown" && timeArg != "" {
if timeArg != "now" { if timeArg != "now" && timeArg != "+0" {
err := fmt.Errorf("Sorry, can't parse '%s' as time value (only 'now' supported)", timeArg) err := fmt.Errorf("Sorry, can't parse '%s' as time value (only 'now' supported)", timeArg)
log.Error(err) log.Error(err)
return err return err