modified the config to own the connectionPool, transport, and a few other objects
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
var _ = require('../../lib/utils'),
|
||||
paramHelper = require('../../lib/param_helper'),
|
||||
errors = require('../../lib/errors'),
|
||||
q = require('q');
|
||||
|
||||
@ -11,16 +10,22 @@ var _ = require('../../lib/utils'),
|
||||
* @param {Object} params - An object with parameters used to carry out this action
|
||||
*/
|
||||
function doIndicesGetSettings(params, cb) {
|
||||
params = params || {};
|
||||
if (typeof params === 'function') {
|
||||
cb = params;
|
||||
params = {};
|
||||
} else {
|
||||
params = params || {};
|
||||
cb = typeof cb === 'function' ? cb : _.noop;
|
||||
}
|
||||
|
||||
var request = {
|
||||
ignore: params.ignore
|
||||
}
|
||||
, parts = {}
|
||||
, query = {}
|
||||
, responseOpts = {};
|
||||
ignore: params.ignore,
|
||||
method: 'GET'
|
||||
},
|
||||
parts = {},
|
||||
query = {},
|
||||
responseOpts = {};
|
||||
|
||||
request.method = 'GET';
|
||||
|
||||
// find the paths's params
|
||||
if (typeof params.index !== 'undefined') {
|
||||
|
||||
Reference in New Issue
Block a user