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
Co-authored-by: spalger <spalger@users.noreply.github.com>
  • Loading branch information
Spencer and spalger authored Feb 4, 2021
1 parent 23d5ffb commit df4eb0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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,7 +246,7 @@ exports.Cluster = class Cluster {
this._log.info(chalk.bold('Starting'));
this._log.indent(4);

const esArgs = ['action.destructive_requires_name=true', ...(options.esArgs || [])];
const esArgs = ['action.destructive_requires_name=true'].concat(options.esArgs || []);

// Add to esArgs if ssl is enabled
if (this._ssl) {
Expand Down

0 comments on commit df4eb0f

Please sign in to comment.