You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ab...@apache.org on 2014/09/30 15:10:39 UTC
git commit: AMBARI-7556 Repository warning on host check. (ababiichuk)
Repository: ambari
Updated Branches:
refs/heads/trunk 503d0f236 -> 7772efb45
AMBARI-7556 Repository warning on host check. (ababiichuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/7772efb4
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7772efb4
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7772efb4
Branch: refs/heads/trunk
Commit: 7772efb4527a7834705e3e0444c797846f1a066a
Parents: 503d0f2
Author: aBabiichuk <ab...@cybervisiontech.com>
Authored: Tue Sep 30 16:08:44 2014 +0300
Committer: aBabiichuk <ab...@cybervisiontech.com>
Committed: Tue Sep 30 16:08:59 2014 +0300
----------------------------------------------------------------------
ambari-web/app/controllers/wizard/step3_controller.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/7772efb4/ambari-web/app/controllers/wizard/step3_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/wizard/step3_controller.js b/ambari-web/app/controllers/wizard/step3_controller.js
index d92981d..11b67ca 100644
--- a/ambari-web/app/controllers/wizard/step3_controller.js
+++ b/ambari-web/app/controllers/wizard/step3_controller.js
@@ -1112,10 +1112,10 @@ App.WizardStep3Controller = Em.Controller.extend({
var selectedOS = [];
var self = this;
var isValid = false;
- if (selectedStack && selectedStack.operatingSystems) {
- selectedStack.get('operatingSystems').filterProperty('selected', true).forEach(function (os) {
- selectedOS.pushObject(os.osType);
- if (self.repoToAgentOsType(os.osType).indexOf(osType) >= 0) {
+ if (selectedStack && selectedStack.get('operatingSystems')) {
+ selectedStack.get('operatingSystems').filterProperty('isSelected', true).forEach(function (os) {
+ selectedOS.pushObject(os.get('osType'));
+ if (self.repoToAgentOsType(os.get('osType')).indexOf(osType) >= 0) {
isValid = true;
}
});