Notify that we are skipping file, but retain error message

pull/6415/head
Bob Brumfield 8 years ago
parent 591bfe3dfa
commit 04ff0761e6

@ -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()

Loading…
Cancel
Save