You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ja...@apache.org on 2014/02/12 02:07:46 UTC
git commit: AMBARI-4620: JS error thrown when disk_info for hosts is
an empty array. (jaimin)
Updated Branches:
refs/heads/trunk 676c1a4d6 -> b986691a1
AMBARI-4620: JS error thrown when disk_info for hosts is an empty array. (jaimin)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/b986691a
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b986691a
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b986691a
Branch: refs/heads/trunk
Commit: b986691a197dd8bfe2794cd3b02b86753db5fff5
Parents: 676c1a4
Author: Jaimin Jetly <ja...@hortonworks.com>
Authored: Tue Feb 11 17:07:19 2014 -0800
Committer: Jaimin Jetly <ja...@hortonworks.com>
Committed: Tue Feb 11 17:07:27 2014 -0800
----------------------------------------------------------------------
ambari-web/app/models/service_config.js | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/b986691a/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 620493b..31d83e8 100644
--- a/ambari-web/app/models/service_config.js
+++ b/ambari-web/app/models/service_config.js
@@ -551,6 +551,12 @@ App.ServiceConfigProperty = Ember.Object.extend({
mountPointAsRoot = mountPointsPerHost.findProperty('mountpoint', '/');
+ // If Server does not send any host details information then atleast one mountpoint should be presumed as root
+ // This happens in a single container Linux Docker environment.
+ if (!mountPointAsRoot) {
+ mountPointAsRoot = {mountpoint: '/'};
+ }
+
mountPointsPerHost = mountPointsPerHost.filter(function (mPoint) {
return !(['/', '/home', '/boot'].contains(mPoint.mountpoint) || ['devtmpfs', 'tmpfs', 'vboxsf'].contains(mPoint.type));
});