ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject git commit: AMBARI-6136. Change "postgresql" to "postgres" in check connection db (Buzhor Denys via alexantonenko)
Date Mon, 16 Jun 2014 15:53:57 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 2326f6c44 -> 40c914d8c


AMBARI-6136. Change "postgresql" to "postgres" in check connection db  (Buzhor Denys via alexantonenko)


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

Branch: refs/heads/trunk
Commit: 40c914d8c7c9e887035fde12c1979b39fb05c42c
Parents: 2326f6c
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Mon Jun 16 18:51:22 2014 +0300
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Mon Jun 16 18:51:22 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/views/wizard/controls_view.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/40c914d8/ambari-web/app/views/wizard/controls_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/wizard/controls_view.js b/ambari-web/app/views/wizard/controls_view.js
index b867701..031d887 100644
--- a/ambari-web/app/views/wizard/controls_view.js
+++ b/ambari-web/app/views/wizard/controls_view.js
@@ -878,7 +878,8 @@ App.CheckDBConnectionView = Ember.View.extend({
    * @method createCustomAction
    **/
   createCustomAction: function() {
-    var params = $.extend(true, {}, { db_name: this.get('databaseName').toLowerCase() },
this.get('connectionProperties'), this.get('ambariProperties'));
+    var dbName = this.get('databaseName').toLowerCase() === 'postgresql' ? 'postgres' : this.get('databaseName').toLowerCase();
+    var params = $.extend(true, {}, { db_name: dbName }, this.get('connectionProperties'),
this.get('ambariProperties'));
     App.ajax.send({
       name: 'custom_action.create',
       sender: this,


Mime
View raw message