Forráskód Böngészése

AMBARI-1964. Add ability to toggle on/off assigning masters for new hosts being added via Add Host wizard. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1469159 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 éve
szülő
commit
2839d91d48

+ 3 - 0
CHANGES.txt

@@ -264,6 +264,9 @@ Trunk (unreleased changes):
 
  IMPROVEMENTS
 
+ AMBARI-1964. Add ability to toggle on/off assigning masters for new hosts
+ being added via Add Host wizard. (yusaku)
+
  AMBARI-1958. Update alert icon legend on Hosts page. (yusaku)
 
  AMBARI-1955. Add ability to turn on/off HUE support. (yusaku)

+ 1 - 0
ambari-web/app/config.js

@@ -49,6 +49,7 @@ App.supports = {
   startStopAllServices: false,
   hiveOozieExtraDatabases: false,
   multipleHBaseMasters: false,
+  addMasters: false,
   hue: false
 };
 

+ 1 - 1
ambari-web/app/controllers/main/host/add_controller.js

@@ -117,7 +117,7 @@ App.AddHostController = App.WizardController.extend({
     console.log('AddHostController.loadServices: loaded data ', servicesInfo);
     var serviceNames = servicesInfo.filterProperty('isSelected', true).mapProperty('serviceName');
     console.log('selected services ', serviceNames);
-    this.set('content.skipMasterStep', !serviceNames.contains('HBASE') && !serviceNames.contains('ZOOKEEPER'));
+    this.set('content.skipMasterStep', (!serviceNames.contains('HBASE') && !serviceNames.contains('ZOOKEEPER')) || !App.supports.addMasters);
   },
 
   /**