Bladeren bron

AMBARI-9119. Adding service does not work on deployed cluster. (akovalenko)

Aleksandr Kovalenko 10 jaren geleden
bovenliggende
commit
fc2b911517

+ 1 - 1
ambari-web/app/controllers/wizard/step7_controller.js

@@ -843,7 +843,7 @@ App.WizardStep7Controller = Em.Controller.extend(App.ServerValidatorMixin, {
     var self = this;
     var self = this;
 
 
     configsByTags.forEach(function (configSite) {
     configsByTags.forEach(function (configSite) {
-      configsMap[configSite.type] = configSite.properties;
+      configsMap[configSite.type] = configSite.properties || {};
     });
     });
     configs.forEach(function (_config) {
     configs.forEach(function (_config) {
       var nonServiceTab = require('data/service_configs');
       var nonServiceTab = require('data/service_configs');

+ 8 - 0
ambari-web/test/controllers/wizard/step7_test.js

@@ -1352,6 +1352,10 @@ describe('App.InstallerStep7Controller', function () {
         {
         {
           siteName: 'ams-hbase-site',
           siteName: 'ams-hbase-site',
           tagName: 'version1'
           tagName: 'version1'
+        },
+        {
+          siteName: 'site-without-properties',
+          tagName: 'version1'
         }
         }
       ],
       ],
       configs = [
       configs = [
@@ -1382,6 +1386,10 @@ describe('App.InstallerStep7Controller', function () {
           properties: {
           properties: {
             'hbase.client.scanner.caching': '2500'
             'hbase.client.scanner.caching': '2500'
           }
           }
+        },
+        {
+          type: 'site-without-properties',
+          tag: 'version1'
         }
         }
       ],
       ],
       installedServiceNames = ['HBASE', 'AMS'];
       installedServiceNames = ['HBASE', 'AMS'];