diff --git a/index.js b/index.js index ebfc4017..4c24bf8b 100644 --- a/index.js +++ b/index.js @@ -109,7 +109,7 @@ class ServerlessPythonRequirements { get targetFuncs() { let inputOpt = this.serverless.processedInput.options; return inputOpt.function - ? [inputOpt.functionObj] + ? [this.serverless.service.functions[inputOpt.function]] : values(this.serverless.service.functions).filter((func) => !func.image); } diff --git a/test.js b/test.js index 3b8a242a..c20817a5 100644 --- a/test.js +++ b/test.js @@ -212,7 +212,6 @@ test( dockerImage: 'break the build to log the command', }, }); - console.log('STDOUT', stdout); t.true( stdout.includes( `-v ${__dirname}${sep}tests${sep}base${sep}custom_ssh:/root/.ssh/custom_ssh:z`