Explorar o código

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

Yusaku Sako %!s(int64=11) %!d(string=hai) anos
pai
achega
a627a68bb6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)