Browse Source

AMBARI-8222. Correct hostname:port regex should be used for timeline server properties to replace hostname. (jaimin)

Jaimin Jetly 10 years ago
parent
commit
0e143629d3
1 changed files with 6 additions and 6 deletions
  1. 6 6
      ambari-web/app/models/service_config.js

+ 6 - 6
ambari-web/app/models/service_config.js

@@ -388,20 +388,20 @@ App.ServiceConfigProperty = Ember.Object.extend({
         break;
       case 'yarn.timeline-service.webapp.address':
         var atsHost =  masterComponentHostsInDB.findProperty('component', 'APP_TIMELINE_SERVER');
-        if (atsHost) {
-          this.setDefaultValue("(0.0.0.0)(?=:)", atsHost.hostName);
+        if (atsHost && atsHost.hostName) {
+          this.setDefaultValue(hostWithPort,atsHost.hostName);
         }
         break;
       case 'yarn.timeline-service.webapp.https.address':
         var atsHost =  masterComponentHostsInDB.findProperty('component', 'APP_TIMELINE_SERVER');
-        if (atsHost) {
-          this.setDefaultValue("(0.0.0.0)(?=:)", atsHost.hostName);
+        if (atsHost && atsHost.hostName) {
+          this.setDefaultValue(hostWithPort,atsHost.hostName);
         }
         break;
       case 'yarn.timeline-service.address':
         var atsHost =  masterComponentHostsInDB.findProperty('component', 'APP_TIMELINE_SERVER');
-        if (atsHost) {
-          this.setDefaultValue("(0.0.0.0)(?=:)", atsHost.hostName);
+        if (atsHost && atsHost.hostName) {
+          this.setDefaultValue(hostWithPort,atsHost.hostName);
         }
         break;
       case 'nm_hosts':