diff --git a/nfs-ls.py b/nfs-ls.py index 35b2818..7eb3d1a 100755 --- a/nfs-ls.py +++ b/nfs-ls.py @@ -43,7 +43,7 @@ def main(): o = urlparse(nfs_path) - host = o.netloc + host = o.hostname uri = o.path portmapper_port = 111 @@ -62,6 +62,7 @@ def main(): mount_path = mountpoint["path"] file_handle = mount.mnt(mountpoint["path"])["file_handle"] file_type = 2 + pass if file_handle == None: mount.disconnect()