mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-05 12:45:10 +01:00
BUG: Fixed Packer Console's UseSequentialEval flag
This commit is contained in:
committed by
Lucas Bajolet
parent
b1417b7f5c
commit
0e8668eb5f
@@ -156,6 +156,10 @@ type PluginsRequiredArgs struct {
|
||||
MetaArgs
|
||||
}
|
||||
|
||||
func (ca *ConsoleArgs) AddFlagSets(flags *flag.FlagSet) {
|
||||
flags.BoolVar(&ca.MetaArgs.UseSequential, "use-sequential-evaluation", false, "Fallback to using a sequential approach for local/datasource evaluation.")
|
||||
}
|
||||
|
||||
// ConsoleArgs represents a parsed cli line for a `packer console`
|
||||
type ConsoleArgs struct {
|
||||
MetaArgs
|
||||
|
||||
@@ -46,6 +46,7 @@ func (c *ConsoleCommand) ParseArgs(args []string) (*ConsoleArgs, int) {
|
||||
flags := c.Meta.FlagSet("console")
|
||||
flags.Usage = func() { c.Ui.Say(c.Help()) }
|
||||
cfg.AddFlagSets(flags)
|
||||
cfg.MetaArgs.AddFlagSets(flags)
|
||||
if err := flags.Parse(args); err != nil {
|
||||
return &cfg, 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user