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 0ac538dc31
commit 75b2fab7b5
3 changed files with 10 additions and 8 deletions

View File

@ -63,9 +63,10 @@ func (c Command) Run(env packer.Environment, args []string) int {
// The component finder for our builds
components := &packer.ComponentFinder{
Builder: env.Builder,
Hook: env.Hook,
Provisioner: env.Provisioner,
Builder: env.Builder,
Hook: env.Hook,
PostProcessor: env.PostProcessor,
Provisioner: env.Provisioner,
}
// Go through each builder and compile the builds that we care about

View File

@ -56,9 +56,10 @@ func (c Command) Run(env packer.Environment, args []string) int {
// The component finder for our builds
components := &packer.ComponentFinder{
Builder: env.Builder,
Hook: env.Hook,
Provisioner: env.Provisioner,
Builder: env.Builder,
Hook: env.Hook,
PostProcessor: env.PostProcessor,
Provisioner: env.Provisioner,
}
// Otherwise, get all the builds

View File

@ -18,7 +18,7 @@ type PostProcessorServer struct {
}
type PostProcessorProcessResponse struct {
Err error
Err error
RPCAddress string
}
@ -83,7 +83,7 @@ func (p *PostProcessorServer) PostProcess(address string, reply *PostProcessorPr
}
*reply = PostProcessorProcessResponse{
Err: err,
Err: err,
RPCAddress: responseAddress,
}