From 6cbc83aff0c922d6b6dc4f371d9b16d81c241433 Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Mon, 25 Apr 2022 14:05:41 +0200 Subject: [PATCH] refactor(AWS Local Invocation): Remove ignored option --- lib/plugins/aws/invoke-local/index.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/plugins/aws/invoke-local/index.js b/lib/plugins/aws/invoke-local/index.js index 505c28b69..3afd8a62f 100644 --- a/lib/plugins/aws/invoke-local/index.js +++ b/lib/plugins/aws/invoke-local/index.js @@ -606,12 +606,9 @@ class AwsInvokeLocal { const wrapperPath = await this.resolveRuntimeWrapperPath('invoke.py'); return new Promise((resolve, reject) => { - const python = spawn( - runtime.split('.')[0], - ['-u', wrapperPath, handlerPath, handlerName], - { env: process.env }, - { shell: true } - ); + const python = spawn(runtime.split('.')[0], ['-u', wrapperPath, handlerPath, handlerName], { + env: process.env, + }); python.stdout.on('data', (buf) => { writeText(buf.toString()); });