You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by xi...@apache.org on 2014/05/09 22:58:18 UTC

git commit: AMBARI-5717. Installer: repo URLs are not saved after customization if 'skip' option is chosen.(xiwang )

Repository: ambari
Updated Branches:
  refs/heads/branch-1.6.0 53ab23d46 -> 9032b6916


AMBARI-5717. Installer: repo URLs are not saved after customization if 'skip' option is chosen.(xiwang )


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/9032b691
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9032b691
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9032b691

Branch: refs/heads/branch-1.6.0
Commit: 9032b6916c4c3a65a8a5958d4bc4ab5ec0836967
Parents: 53ab23d
Author: Xi Wang <xi...@apache.org>
Authored: Fri May 9 13:27:02 2014 -0700
Committer: Xi Wang <xi...@apache.org>
Committed: Fri May 9 13:36:08 2014 -0700

----------------------------------------------------------------------
 ambari-web/app/controllers/installer.js | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/9032b691/ambari-web/app/controllers/installer.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/installer.js b/ambari-web/app/controllers/installer.js
index 48c501e..91fb64d 100644
--- a/ambari-web/app/controllers/installer.js
+++ b/ambari-web/app/controllers/installer.js
@@ -480,10 +480,8 @@ App.InstallerController = App.WizardController.extend({
       selectedStack.operatingSystems.forEach(function (os) {
         os.errorTitle = null;
         os.errorContent = null;
-        if (os.skipValidation) {
-          this.set('validationCnt', 0);
-        }
-        if (os.selected && !os.skipValidation) {
+        var verifyBaseUrl = os.skipValidation ? false: true;
+        if (os.selected ) {
           os.validation = 'icon-repeat';
           selectedStack.set('reload', !selectedStack.get('reload'));
           App.ajax.send({
@@ -496,7 +494,8 @@ App.InstallerController = App.WizardController.extend({
               osType: os.osType,
               data: {
                 'Repositories': {
-                  'base_url': os.baseUrl
+                  'base_url': os.baseUrl,
+                  'verify_base_url': verifyBaseUrl
                 }
               }
             },