1
0
mirror of https://github.com/rancher/os.git synced 2025-08-30 12:31:24 +00:00

Add --no-pull flag to 'ros console switch'

This commit is contained in:
Josh Curl 2016-07-21 10:25:32 -07:00
parent df6d77fff7
commit 83332ceade
No known key found for this signature in database
GPG Key ID: 82B504B9BCCFA677

View File

@ -30,6 +30,10 @@ func consoleSubcommands() []cli.Command {
Name: "force, f",
Usage: "do not prompt for input",
},
cli.BoolFlag{
Name: "no-pull",
Usage: "don't pull console image",
},
},
},
{
@ -67,7 +71,7 @@ func consoleSwitch(c *cli.Context) error {
}
}
if newConsole != "default" {
if !c.Bool("no-pull") && newConsole != "default" {
if err := compose.StageServices(cfg, newConsole); err != nil {
return err
}