Notify that we are skipping file, but retain error message
This commit is contained in:
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…
Reference in New Issue