ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From onechipore...@apache.org
Subject [2/2] ambari git commit: AMBARI-12868. Improve calls to the localStorage (onechiporenko)
Date Fri, 28 Aug 2015 10:01:38 GMT
AMBARI-12868. Improve calls to the localStorage (onechiporenko)


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

Branch: refs/heads/branch-2.1
Commit: 33c694b181c5c1c10293bc4ecf008d54960fc23b
Parents: e04050e
Author: Oleg Nechiporenko <onechiporenko@apache.org>
Authored: Fri Aug 28 12:53:36 2015 +0300
Committer: Oleg Nechiporenko <onechiporenko@apache.org>
Committed: Fri Aug 28 12:53:36 2015 +0300

----------------------------------------------------------------------
 .../app/controllers/main/admin/stack_and_upgrade_controller.js   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/33c694b1/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js b/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js
index fa5b479..ddca7f1 100644
--- a/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js
+++ b/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js
@@ -163,7 +163,9 @@ App.MainAdminStackAndUpgradeController = Em.Controller.extend(App.LocalStorage,
   initDBProperties: function () {
     var props = this.getDBProperties(this.get('wizardStorageProperties'));
     Em.keys(props).forEach(function (k) {
-      this.set(k, props[k]);
+      if (props[k]) {
+        this.set(k, props[k]);
+      }
     }, this);
   },
 


Mime
View raw message