浏览代码

AMBARI-7312. Ambari namenode UI link checks deprecated property for ssl enabled hdfs for HDP 2.1.x. Additional path. (Denys Buzhor via akovalenko)

Aleksandr Kovalenko 11 年之前
父节点
当前提交
02e9fdbc19
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ambari-web/app/views/common/quick_view_link_view.js

+ 1 - 1
ambari-web/app/views/common/quick_view_link_view.js

@@ -309,7 +309,7 @@ App.QuickViewLinks = Em.View.extend({
     var hadoopSslEnabled = false;
     if (configProperties && configProperties.length > 0) {
       var site = configProperties.findProperty('type', 'core-site');
-      if (parseInt(App.get('currentStackVersionNumber')[0]) > 1) {
+      if (App.get('isHadoop2Stack')) {
         hadoopSslEnabled = (Em.get(site, 'properties') && site.properties['dfs.http.policy'] === 'HTTPS_ONLY');
       } else {
         hadoopSslEnabled = (Em.get(site, 'properties') &&  site.properties['hadoop.ssl.enabled'] == true);