Skip to content

Commit

Permalink
fixup! Fix NFS VolumeStore FQDN not working
Browse files Browse the repository at this point in the history
  • Loading branch information
YanzhaoLi committed Nov 26, 2018
1 parent 2009b83 commit e912dce
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/tether/ops_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -960,15 +960,6 @@ func (t *BaseOperations) MountTarget(ctx context.Context, source url.URL, target
}
rawSource.WriteString(source.Path)

if ip := net.ParseIP(source.Hostname()); ip != nil {
if err := syscallMount(rawSource.String(), target, nfsFileSystemType, mountOptions); err != nil {
log.Errorf("mounting %s on %s failed: %s", source.String(), target, err)
return err
}
return nil
}

log.Debugf("Looking up host %s", source.Hostname())
ips, err := net.LookupIP(source.Hostname())
if err != nil {
log.Errorf("failing to resolve %s. mounting %s on %s failed: %s", source.Hostname(), source.String(), target, err)
Expand Down

0 comments on commit e912dce

Please sign in to comment.