Fix invalid cast.

Signed-off-by: Rob Dobson <rob.dobson@citrix.com>
This commit is contained in:
Rob Dobson 2014-11-14 18:25:22 +00:00
parent f282a95bf8
commit 4d961011fa

View File

@ -34,7 +34,7 @@ func (stepPrepareOutputDir) Cleanup(state multistep.StateBag) {
_, halted := state.GetOk(multistep.StateHalted)
if cancelled || halted {
config := state.Get("config").(*config)
config := state.Get("config").(config)
ui := state.Get("ui").(packer.Ui)
ui.Say("Deleting output directory...")