From 04ff0761e6ffa749da817bcb1c819eaa864f6e49 Mon Sep 17 00:00:00 2001 From: Bob Brumfield Date: Mon, 25 Jun 2018 08:28:32 -0700 Subject: [PATCH] Notify that we are skipping file, but retain error message --- builder/vmware/common/driver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/vmware/common/driver.go b/builder/vmware/common/driver.go index 553d307ba..1a945d19b 100644 --- a/builder/vmware/common/driver.go +++ b/builder/vmware/common/driver.go @@ -358,7 +358,7 @@ func (d *VmwareDriver) GuestIP(state multistep.StateBag) (string, error) { // open up the lease and read its contents fh, err := os.Open(dhcpLeasesPath) if err != nil { - log.Printf("Unable to open lease path, skipping: %s", dhcpLeasesPath) + log.Printf("Error while reading DHCP lease path file %s: %s", dhcpLeasesPath, err.Error()) continue } defer fh.Close()