Browse Source

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 năm trước cách đây
mục cha
commit
02e9fdbc19
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);