瀏覽代碼

HUE-5143 [jb] rm_ha decorator decorator does not specify the user correctly

Romain Rigaux 9 年之前
父節點
當前提交
c875f7abe1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/libs/hadoop/src/hadoop/cluster.py

+ 1 - 1
desktop/libs/hadoop/src/hadoop/cluster.py

@@ -71,7 +71,7 @@ def rm_ha(funct):
       ex_message = str(ex)
       if 'Connection refused' in ex_message or 'Connection aborted' in ex_message or 'standby RM' in ex_message:
         LOG.info('Resource Manager not available, trying another RM: %s.' % ex)
-        rm_ha = get_next_ha_yarncluster(current_user=api.user())
+        rm_ha = get_next_ha_yarncluster(current_user=api.user)
         if rm_ha is not None:
           if rm_ha[1].url == api.resource_manager_api.url:
             raise ex