From c104e31253f016062894c010ae3017c542e67b25 Mon Sep 17 00:00:00 2001 From: tfortimmy Date: Wed, 27 Jul 2022 07:26:05 +0000 Subject: [PATCH] Change the index.js to the recommended fix from github --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }