Notify that we are skipping file, but retain error message

This commit is contained in:
Bob Brumfield 2018-06-25 08:28:32 -07:00
parent 591bfe3dfa
commit 04ff0761e6
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ func (d *VmwareDriver) GuestIP(state multistep.StateBag) (string, error) {
// open up the lease and read its contents // open up the lease and read its contents
fh, err := os.Open(dhcpLeasesPath) fh, err := os.Open(dhcpLeasesPath)
if err != nil { 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 continue
} }
defer fh.Close() defer fh.Close()