Updated Branches:
  refs/heads/trunk 3356ffbd9 -> aef337b56

AMBARI-3219. NameNode HA Wizard: refreshing does not reload the page and the 
user is stuck. Committed second patch


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

Branch: refs/heads/trunk
Commit: aef337b5635abacb94a6bf6fa87fa475e05faa4f
Parents: 3356ffb
Author: Alex Antonenko <[email protected]>
Authored: Fri Sep 13 20:09:04 2013 +0300
Committer: Alex Antonenko <[email protected]>
Committed: Fri Sep 13 20:09:04 2013 +0300

----------------------------------------------------------------------
 ambari-web/app/mappers/service_mapper.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/aef337b5/ambari-web/app/mappers/service_mapper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mappers/service_mapper.js 
b/ambari-web/app/mappers/service_mapper.js
index ad6f1ed..d4ca147 100644
--- a/ambari-web/app/mappers/service_mapper.js
+++ b/ambari-web/app/mappers/service_mapper.js
@@ -391,7 +391,7 @@ App.servicesMapper = App.QuickDataMapper.create({
         item.nameNodeComponent = component;
         finalConfig = jQuery.extend(finalConfig, hdfsConfig);
         // Get the live, dead & decommission nodes from string json
-        if (component.host_components[0].metrics.dfs && 
component.host_components[0].metrics.dfs.namenode) {
+        if (component.host_components[0].metrics && 
component.host_components[0].metrics.dfs.namenode) {
           var liveNodesJson = 
App.parseJSON(component.host_components[0].metrics.dfs.namenode.LiveNodes);
           var deadNodesJson = 
App.parseJSON(component.host_components[0].metrics.dfs.namenode.DeadNodes);
           var decommissionNodesJson = 
App.parseJSON(component.host_components[0].metrics.dfs.namenode.DecomNodes);

Reply via email to