create export directories for vmx and ovf file types, too.

This commit is contained in:
Megan Marsh 2018-11-09 11:45:36 -08:00
parent c3bf014b5f
commit e5c4a4a6fb
1 changed files with 1 additions and 3 deletions

View File

@ -74,9 +74,7 @@ func (s *StepExport) Run(_ context.Context, state multistep.StateBag) multistep.
s.OutputDir = s.VMName + "." + s.Format
}
if s.Format == "ova" {
os.MkdirAll(s.OutputDir, 0755)
}
os.MkdirAll(s.OutputDir, 0755)
ui.Say("Exporting virtual machine...")
var displayName string