You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2013/08/05 20:32:31 UTC

git commit: AMBARI-2804. Going back to service reconfig forgets the passwords. (xiwang via yusaku)

Updated Branches:
  refs/heads/trunk 91ce30a1b -> 662f92524


AMBARI-2804. Going back to service reconfig forgets the passwords. (xiwang via yusaku)


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

Branch: refs/heads/trunk
Commit: 662f92524cd7c66ed3decf84648ab325f20f2243
Parents: 91ce30a
Author: Yusaku Sako <yu...@hortonworks.com>
Authored: Mon Aug 5 11:31:58 2013 -0700
Committer: Yusaku Sako <yu...@hortonworks.com>
Committed: Mon Aug 5 11:31:58 2013 -0700

----------------------------------------------------------------------
 ambari-web/app/models/service_config.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/662f9252/ambari-web/app/models/service_config.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/models/service_config.js b/ambari-web/app/models/service_config.js
index 6972231..74c7670 100644
--- a/ambari-web/app/models/service_config.js
+++ b/ambari-web/app/models/service_config.js
@@ -190,8 +190,7 @@ App.ServiceConfigProperty = Ember.Object.extend({
   }.property('isUserProperty', 'isOriginalSCP'),
   init: function () {
     if(this.get("displayType")=="password"){
-      this.set('retypedPassword', this.get('defaultValue'));
-      this.set('value', this.get('defaultValue'));
+      this.set('retypedPassword', this.get('value'));
     }
     if ((this.get('id') === 'puppet var') && this.get('value') == '') {
       this.set('value', this.get('defaultValue'));