1
0
mirror of https://github.com/rancher/os.git synced 2025-07-01 09:11:48 +00:00

Merge pull request #1123 from joshwget/no-pull-flag

Add --no-pull flag to 'ros console switch'
This commit is contained in:
Darren Shepherd 2016-07-21 23:06:10 -07:00 committed by GitHub
commit ad6c25e0cc

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
}