Commit 8766a932 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware: correct logic in cehcking if file is still there

parent 6211cd20
......@@ -50,7 +50,7 @@ func (stepCleanFiles) Run(state multistep.StateBag) multistep.StepAction {
ui.Message(fmt.Sprintf("Deleting: %s", path))
if err = dir.Remove(path); err != nil {
// Only report the error if the file still exists
if _, serr := os.Stat(path); serr == nil || os.IsNotExist(serr) {
if _, serr := os.Stat(path); serr == nil || !os.IsNotExist(serr) {
state.Put("error", err)
return multistep.ActionHalt
}
......
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