mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-26 09:44:01 -04:00
Fix for non consequent if statement (failing ESXi iso builds).
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user