Merge pull request #6985 from hashicorp/fix_6860

create export directories for vmx and ovf file types, too.
This commit is contained in:
Adrien Delorme 2018-11-12 10:25:34 +01:00 committed by GitHub
commit 559aa5d5c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)
}
ui.Say("Exporting virtual machine...")
var displayName string