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:
commit
ad6c25e0cc
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user