Browse Source

HUE-7248 [adls] fix assist hdfs error on root

jdesjean 8 years ago
parent
commit
ec8c586
1 changed files with 1 additions and 4 deletions
  1. 1 4
      desktop/core/src/desktop/lib/fs/proxyfs.py

+ 1 - 4
desktop/core/src/desktop/lib/fs/proxyfs.py

@@ -63,10 +63,7 @@ class ProxyFS(object):
         raise S3FileSystemException("Can't check permissions for %s on %s" % (self.user, path))
 
     split = urlparse(path)
-    if split.scheme:
-      return split.scheme
-    if path and path[0] == posixpath.sep:
-      return self._default_scheme
+    return split.scheme if split.scheme else self._default_scheme
 
   def _get_fs(self, path):
     scheme = self._get_scheme(path)