Browse Source

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

Alex Antonenko 11 years ago
parent
commit
40c914d8c7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ambari-web/app/views/wizard/controls_view.js

+ 2 - 1
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,