mirror of
https://github.com/rancher/os.git
synced 2025-04-27 11:10:56 +00:00
Fix error with ProxmoxVE shutdown
This commit is contained in:
parent
397977b0af
commit
2ed9befdf2
@ -214,7 +214,7 @@ func shutdown(c *cli.Context) error {
|
||||
// cannot contain slashes.
|
||||
appName := filepath.Base(c.App.Name)
|
||||
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)
|
||||
log.Error(err)
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user