Fix for non consequent if statement (failing ESXi iso builds).

pull/3050/head
Anders Quist 10 years ago
parent d507b18eb4
commit 23246c01cf

@ -327,7 +327,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()

Loading…
Cancel
Save