Skip to content

Commit

Permalink
[kbn/es] avoid splitting string esArgs into separate args (#90253) (#…
Browse files Browse the repository at this point in the history
…90257)

Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	packages/kbn-es/src/cluster.js
  • Loading branch information
Spencer authored Feb 4, 2021
1 parent 80b018e commit a3b5557
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/kbn-es/src/cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ exports.Cluster = class Cluster {
* @private
* @param {String} installPath
* @param {Object} options
* @property {Array} options.esArgs
* @property {string|Array} options.esArgs
* @return {undefined}
*/
_exec(installPath, options = {}) {
Expand All @@ -246,8 +246,7 @@ exports.Cluster = class Cluster {
this._log.info(chalk.bold('Starting'));
this._log.indent(4);

const esArgs = options.esArgs || [];

const esArgs = [].concat(options.esArgs || []);
// Add to esArgs if ssl is enabled
if (this._ssl) {
esArgs.push('xpack.security.http.ssl.enabled=true');
Expand Down

0 comments on commit a3b5557

Please sign in to comment.