Parcourir la source

AMBARI-4956 Add Host fails. (Mikhail Bayuk via ababiichuk)

aBabiichuk il y a 11 ans
Parent
commit
9937ad2421
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      ambari-web/app/controllers/wizard/step8_controller.js

+ 4 - 2
ambari-web/app/controllers/wizard/step8_controller.js

@@ -608,7 +608,9 @@ App.WizardStep8Controller = Em.Controller.extend({
     this.setLocalRepositories();
     this.createCluster();
     this.createSelectedServices();
-    this.createConfigurations();
+    if (this.get('content.controllerName') !== 'addHostController') {
+      this.createConfigurations();
+    }
     this.createComponents();
     this.registerHostsToCluster();
     if (App.supports.hostOverridesInstaller) {
@@ -1051,7 +1053,7 @@ App.WizardStep8Controller = Em.Controller.extend({
       this.get('serviceConfigTags').pushObject(this.createLog4jObj('HDFS'));
     }
     var globalSiteObj = this.createGlobalSiteObj();
-    if (['addHostController','addServiceController'].contains(this.get('content.controllerName'))) {
+    if (this.get('content.controllerName') == 'addServiceController') {
       globalSiteObj.tag = 'version' + (new Date).getTime();
       coreSiteObject.tag = 'version' + (new Date).getTime();
       this.get('serviceConfigTags').pushObject(coreSiteObject);