Преглед на файлове

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

Alex Antonenko преди 11 години
родител
ревизия
40c914d8c7
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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,