Commit 75b2fab7 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

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

parent 0ac538dc
...@@ -63,9 +63,10 @@ func (c Command) Run(env packer.Environment, args []string) int { ...@@ -63,9 +63,10 @@ func (c Command) Run(env packer.Environment, args []string) int {
// The component finder for our builds // The component finder for our builds
components := &packer.ComponentFinder{ components := &packer.ComponentFinder{
Builder: env.Builder, Builder: env.Builder,
Hook: env.Hook, Hook: env.Hook,
Provisioner: env.Provisioner, PostProcessor: env.PostProcessor,
Provisioner: env.Provisioner,
} }
// Go through each builder and compile the builds that we care about // Go through each builder and compile the builds that we care about
......
...@@ -56,9 +56,10 @@ func (c Command) Run(env packer.Environment, args []string) int { ...@@ -56,9 +56,10 @@ func (c Command) Run(env packer.Environment, args []string) int {
// The component finder for our builds // The component finder for our builds
components := &packer.ComponentFinder{ components := &packer.ComponentFinder{
Builder: env.Builder, Builder: env.Builder,
Hook: env.Hook, Hook: env.Hook,
Provisioner: env.Provisioner, PostProcessor: env.PostProcessor,
Provisioner: env.Provisioner,
} }
// Otherwise, get all the builds // Otherwise, get all the builds
......
...@@ -18,7 +18,7 @@ type PostProcessorServer struct { ...@@ -18,7 +18,7 @@ type PostProcessorServer struct {
} }
type PostProcessorProcessResponse struct { type PostProcessorProcessResponse struct {
Err error Err error
RPCAddress string RPCAddress string
} }
...@@ -83,7 +83,7 @@ func (p *PostProcessorServer) PostProcess(address string, reply *PostProcessorPr ...@@ -83,7 +83,7 @@ func (p *PostProcessorServer) PostProcess(address string, reply *PostProcessorPr
} }
*reply = PostProcessorProcessResponse{ *reply = PostProcessorProcessResponse{
Err: err, Err: err,
RPCAddress: responseAddress, RPCAddress: responseAddress,
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment