From 6d946fe87c88af0075655a63515baf494f0581e8 Mon Sep 17 00:00:00 2001 From: "Jason A. Beranek" Date: Wed, 18 Sep 2013 22:56:00 -0500 Subject: [PATCH] post-processor/vagrant: pass PackerConfig to sub post-processors --- post-processor/vagrant/post-processor.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/post-processor/vagrant/post-processor.go b/post-processor/vagrant/post-processor.go index 952f574ad..91969e558 100644 --- a/post-processor/vagrant/post-processor.go +++ b/post-processor/vagrant/post-processor.go @@ -56,6 +56,11 @@ func (p *PostProcessor) Configure(raws ...interface{}) error { // Store extra configuration we'll send to each post-processor type p.extraConfig = make(map[string]interface{}) p.extraConfig["output"] = p.config.OutputPath + p.extraConfig["packer_build_name"] = p.config.PackerBuildName + p.extraConfig["packer_builder_type"] = p.config.PackerBuilderType + p.extraConfig["packer_debug"] = p.config.PackerDebug + p.extraConfig["packer_force"] = p.config.PackerForce + p.extraConfig["packer_user_variables"] = p.config.PackerUserVars // TODO(mitchellh): Properly handle multiple raw configs. This isn't // very pressing at the moment because at the time of this comment