1
0
mirror of https://github.com/rancher/os.git synced 2025-09-08 18:20:32 +00:00

Add prompt message to ros os upgrade

This commit is contained in:
Jason-ZW
2019-01-09 13:15:15 +08:00
committed by niusmallnan
parent 03deff471e
commit 24229f0dec
3 changed files with 13 additions and 1 deletions

View File

@@ -185,6 +185,10 @@ func osUpgrade(c *cli.Context) error {
log.Fatalf("ros install / upgrade only supported on 'amd64', not '%s'", runtime.GOARCH)
}
if isExist := checkGlobalCfg(); !isExist {
log.Fatalf("ros upgrade cannot be supported")
}
image := c.String("image")
if image == "" {