Skip to content

Commit 474acca

Browse files
committed
fix: Properly recognize individual function
1 parent a4cd36b commit 474acca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class ServerlessPythonRequirements {
109109
get targetFuncs() {
110110
let inputOpt = this.serverless.processedInput.options;
111111
return inputOpt.function
112-
? [inputOpt.functionObj]
112+
? [this.serverless.service.functions[inputOpt.function]]
113113
: values(this.serverless.service.functions).filter((func) => !func.image);
114114
}
115115

0 commit comments

Comments
 (0)