Browse Source

AMBARI-4550. Add host wizard has an empty Repositories field. (xiwang via yusaku)

Yusaku Sako 11 years ago
parent
commit
a627a68bb6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ambari-web/app/controllers/wizard/step8_controller.js

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

@@ -415,7 +415,7 @@ App.WizardStep8Controller = Em.Controller.extend({
     var supportedOs = ['redhat5', 'redhat6', 'sles11'];
     data.items.forEach(function (item) {
       var os = item.repositories[0].Repositories;
-      if (supportedOs.contains(os.osType)) {
+      if (supportedOs.contains(os.os_type)) {
         allRepos.push(Em.Object.create({
           base_url: os.base_url,
           os_type: Em.I18n.t("installer.step8.repoInfo.osType." + os.os_type)