浏览代码

HUE-7676 [core] skip_trash for hue_config_validation

Chris Conner 8 年之前
父节点
当前提交
06b85b8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/libs/hadoop/src/hadoop/fs/webhdfs.py

+ 1 - 1
desktop/libs/hadoop/src/hadoop/fs/webhdfs.py

@@ -1013,7 +1013,7 @@ def test_fs_configuration(fs_config):
               'is owned by the cluster superuser "%s".') % DEFAULT_HDFS_SUPERUSER]
   finally:
     try:
-      fs.remove(tmpname)
+      fs.remove(tmpname, skip_trash=True)
     except Exception, ex:
       LOG.error("Failed to remove '%s': %s" % (tmpname, ex))
       return [(fs_config.WEBHDFS_URL, _('Failed to remove temporary file "%s"') % tmpname)]