mirror of
https://github.com/rancher/os.git
synced 2025-09-02 15:24:32 +00:00
Fix error with ProxmoxVE shutdown
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user