Repository: ambari Updated Branches: refs/heads/trunk 5ed0f4267 -> b46db5d55
AMBARI-12133 Ambari: It could not load the YARN configs page. (ababiichuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/b46db5d5 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b46db5d5 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b46db5d5 Branch: refs/heads/trunk Commit: b46db5d554e0f1da216c488b58247efc8d7df235 Parents: 5ed0f42 Author: aBabiichuk <[email protected]> Authored: Wed Jul 29 19:06:10 2015 +0300 Committer: aBabiichuk <[email protected]> Committed: Thu Jul 30 15:10:45 2015 +0300 ---------------------------------------------------------------------- ambari-web/app/utils/configs/database.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/b46db5d5/ambari-web/app/utils/configs/database.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/utils/configs/database.js b/ambari-web/app/utils/configs/database.js index 6dde0fa..b2b1448 100644 --- a/ambari-web/app/utils/configs/database.js +++ b/ambari-web/app/utils/configs/database.js @@ -83,15 +83,8 @@ module.exports = { // set UI host names for each database type with value parsed from jdbc connection url // if value is not ip or hostname (in case of New Derby Database) for Oozie set <code>fallbackUrl</code> // from <code>dbServicePropertyMap</code> - var dbHostName; - if (self.isValidHostname(jdbcObject.location)) { - dbHostName = jdbcObject.location; - } else { - dbHostName = Em.get(configs.findProperty('name', self.dbServicePropertyMap[serviceName].fallbackHostName), 'recommendedValue'); - dbHostName = Em.isArray(dbHostName) ? dbHostName[0] : dbHostName; - } Em.setProperties(property, { - value: dbHostName + value: jdbcObject.location || '' }); self.addPropertyToServiceConfigs(property, serviceConfigs, databaseTypePropertyIndex); }
