Include cache in the state bag.

This commit is contained in:
Taliesin Sisson 2015-10-30 19:57:27 +00:00
parent 50a8d1b6b4
commit aaf9007249
1 changed files with 27 additions and 26 deletions

View File

@ -17,9 +17,9 @@ import (
"github.com/mitchellh/packer/powershell/hyperv"
"github.com/mitchellh/packer/template/interpolate"
"log"
"os"
"strings"
"time"
"os"
)
const (
@ -324,6 +324,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
// Set up the state.
state := new(multistep.BasicStateBag)
state.Put("cache", cache)
state.Put("config", &b.config)
state.Put("driver", driver)
state.Put("hook", hook)