ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jai...@apache.org
Subject ambari git commit: AMBARI-8222. Correct hostname:port regex should be used for timeline server properties to replace hostname. (jaimin)
Date Sat, 08 Nov 2014 00:52:24 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 689e16e6b -> 0e143629d


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


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/0e143629
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/0e143629
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/0e143629

Branch: refs/heads/trunk
Commit: 0e143629d35b1d27ca5be9c00aed30357071f7cd
Parents: 689e16e
Author: Jaimin Jetly <jaimin@hortonworks.com>
Authored: Fri Nov 7 16:49:28 2014 -0800
Committer: Jaimin Jetly <jaimin@hortonworks.com>
Committed: Fri Nov 7 16:51:02 2014 -0800

----------------------------------------------------------------------
 ambari-web/app/models/service_config.js | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/0e143629/ambari-web/app/models/service_config.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/models/service_config.js b/ambari-web/app/models/service_config.js
index c1670e0..a3ffc3e 100644
--- a/ambari-web/app/models/service_config.js
+++ b/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':


Mime
View raw message