Fixed an issue identified by @SwampDragons when checking if the networkmapper configuration file exists.
This commit is contained in:
parent
9b1d31cee7
commit
c7545c37dd
|
@ -204,7 +204,10 @@ func (d *Player5Driver) Verify() error {
|
|||
|
||||
d.VmwareDriver.NetworkMapper = func() (NetworkNameMapper, error) {
|
||||
pathNetmap := playerNetmapConfPath()
|
||||
if _, err := os.Stat(pathNetmap); err != nil {
|
||||
|
||||
// If we were able to find the file (no error), then we can proceed with reading
|
||||
// the networkmapper configuration.
|
||||
if _, err := os.Stat(pathNetmap); err == nil {
|
||||
log.Printf("Located networkmapper configuration file using Player: %s", pathNetmap)
|
||||
return ReadNetmapConfig(pathNetmap)
|
||||
}
|
||||
|
|
|
@ -165,6 +165,9 @@ func (d *Workstation9Driver) Verify() error {
|
|||
|
||||
d.VmwareDriver.NetworkMapper = func() (NetworkNameMapper, error) {
|
||||
pathNetmap := workstationNetmapConfPath()
|
||||
|
||||
// Check that the file for the networkmapper configuration exists. If there's no
|
||||
// error, then the file exists and we can proceed to read the configuration out of it.
|
||||
if _, err := os.Stat(pathNetmap); err == nil {
|
||||
log.Printf("Located networkmapper configuration file using Workstation: %s", pathNetmap)
|
||||
return ReadNetmapConfig(pathNetmap)
|
||||
|
|
Loading…
Reference in New Issue