Przeglądaj źródła

HUE-8925 [azure] Skip fs home creation on login in Azure only configuration

Romain 6 lat temu
rodzic
commit
23bf1ed465

+ 1 - 1
desktop/libs/aws/src/aws/s3/s3fs.py

@@ -353,7 +353,7 @@ class S3FileSystem(object):
   def filebrowser_action(self):
     return self._filebrowser_action
 
-  def create_home_dir(self, path):
+  def create_home_dir(self, home_path):
     LOG.info('Create home directory is not available for S3 filesystem')
 
   @translate_s3_error

+ 2 - 2
desktop/libs/azure/src/azure/abfs/abfs.py

@@ -314,7 +314,7 @@ class ABFS(object):
       self._writedata(path, data, len(data))
 
   def create_home_dir(self, home_path=None):
-    raise NotImplementedError("File System not named")
+    LOG.info('Create home directory is not available for Azure filesystem')
 
   def _create_path(self,path, params=None, headers=None, overwrite=False):
     """
@@ -541,7 +541,7 @@ class ABFS(object):
     """
     local_src = local_src.endswith('/') and local_src[:-1] or local_src
     remote_dst = remote_dst.endswith('/') and remote_dst[:-1] or remote_dst
-    
+
     if os.path.isdir(local_src):
       self._local_copy_dir(local_src,remote_dst)
     else: