command/build, command/validate: Setup proper components to avoid nil
This commit is contained in:
parent
0edeb49467
commit
338298b8af
|
@ -65,6 +65,7 @@ func (c Command) Run(env packer.Environment, args []string) int {
|
|||
components := &packer.ComponentFinder{
|
||||
Builder: env.Builder,
|
||||
Hook: env.Hook,
|
||||
PostProcessor: env.PostProcessor,
|
||||
Provisioner: env.Provisioner,
|
||||
}
|
||||
|
||||
|
|
|
@ -58,6 +58,7 @@ func (c Command) Run(env packer.Environment, args []string) int {
|
|||
components := &packer.ComponentFinder{
|
||||
Builder: env.Builder,
|
||||
Hook: env.Hook,
|
||||
PostProcessor: env.PostProcessor,
|
||||
Provisioner: env.Provisioner,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue