Merge pull request #3050 from andqui/master

vmware-iso-builder: Fix for non consequential if statement (failing ESXi iso builds).
This commit is contained in:
Chris Bednarski 2016-05-19 17:43:49 -07:00
commit 45e6a238ff
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
// Compile the artifact list
var files []string
if b.config.RemoteType != "" {
if b.config.RemoteType != "" && b.config.Format != "" {
dir = new(vmwcommon.LocalOutputDir)
dir.SetOutputDir(b.config.OutputDir)
files, err = dir.ListFiles()