refactor(AWS Local Invocation): Remove ignored option

This commit is contained in:
Mariusz Nowak 2022-04-25 14:05:41 +02:00 committed by Mariusz Nowak
parent 2b1145ad20
commit 6cbc83aff0

View File

@ -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());
});