command/build, command/validate: Setup proper components to avoid nil

This commit is contained in:
Mitchell Hashimoto 2013-06-18 16:29:29 -07:00
parent 0edeb49467
commit 338298b8af
3 changed files with 10 additions and 8 deletions

View File

@ -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,
}

View File

@ -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,
}