Merge pull request #548 from roktas/master

post-processor/vagrant: fix bug in ova support caused by wrong file path
This commit is contained in:
Mitchell Hashimoto 2013-10-20 15:43:25 -07:00
commit 273e161b27
1 changed files with 1 additions and 1 deletions

View File

@ -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 {