From fc4c7bb72c682676d729136c7e7e702f93df473c Mon Sep 17 00:00:00 2001 From: slslazy <52425216+slslazy@users.noreply.github.com> Date: Mon, 29 Nov 2021 19:06:52 -0500 Subject: [PATCH] Update index.js to fix package individually. The change allows the use of the package individually true combined with sls deploy function -f func_name. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index cf2af38e..2bab66a8 100644 --- a/index.js +++ b/index.js @@ -105,7 +105,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); }