Commit 273e161b authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Merge pull request #548 from roktas/master

post-processor/vagrant: fix bug in ova support caused by wrong file path
parents 3608329a 4fcf0d6d
......@@ -92,7 +92,7 @@ func (p *VBoxBoxPostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifac
// directory so we can get the resulting disk and OVF.
if extension := filepath.Ext(path); extension == ".ova" {
ui.Message(fmt.Sprintf("Unpacking OVA: %s", path))
if err := DecompressOva(dir, filepath.Base(path)); err != nil {
if err := DecompressOva(dir, path); err != nil {
return nil, false, err
}
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment