From 54465bab4b2dccce63d669ae0379deeac61caad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Notin?= Date: Thu, 26 Sep 2019 19:23:52 +0200 Subject: [PATCH] nfs-ls: handle "nfs://" URLs with port number and quick optim --- nfs-ls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()