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:
parent
397977b0af
commit
2ed9befdf2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user