Преглед изворни кода

AMBARI-6101. Oozie UI quick link directed to wrong host URL (Buzhor Denys via alexantonenko)

Alex Antonenko пре 11 година
родитељ
комит
f22493a9c7
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

@@ -132,7 +132,7 @@ App.QuickViewLinks = Em.View.extend({
       case "GANGLIA":
       case "NAGIOS":
       case "HUE":
-        hosts[0] = App.singleNodeInstall ? App.singleNodeAlias : response.items[0].Hosts.public_host_name;
+        hosts[0] = App.singleNodeInstall ? App.singleNodeAlias : this.findComponentHost(response.items, this.get('content.hostComponents').findProperty('isMaster', true).get('componentName'));
         break;
       case "HBASE":
         var masterComponents = response.items.filter(function (item) {