From 1b2d9c4044811a8a05fec8bb2fcab6de1090383f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 12 Aug 2013 16:13:06 -0700 Subject: [PATCH] builder/vmware: find files if they exist [GH-279] --- CHANGELOG.md | 4 ++++ builder/vmware/driver_workstation9_windows.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5456fd437..ed9a796a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ IMPROVEMENTS: for the provisioner to attempt to _start_ the remote process. This allows the shell provisioner to work properly with reboots. [GH-260] +BUG FIXES: + +* builder/vmware: Fix issue with finding driver files. [GH-279] + ## 0.3.0 (August 12, 2013) BACKWARDS INCOMPATIBILITIES: diff --git a/builder/vmware/driver_workstation9_windows.go b/builder/vmware/driver_workstation9_windows.go index 7cef55845..19a7679c9 100644 --- a/builder/vmware/driver_workstation9_windows.go +++ b/builder/vmware/driver_workstation9_windows.go @@ -141,7 +141,7 @@ func findFile(file string, paths []string) string { path = normalizePath(path) log.Printf("Searching for file '%s'", path) - if _, err := os.Stat(path); err != nil { + if _, err := os.Stat(path); err == nil { log.Printf("Found file '%s'", path) return path }