Skip to content

Commit 3ae2b2a

Browse files
author
Alex Opie
committed
Access the specified function by name from the map of functions
There is no attribute called functionObj on the processedInput.options object. serverless#605
1 parent 0378be6 commit 3ae2b2a

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
@@ -101,7 +101,7 @@ class ServerlessPythonRequirements {
101101
get targetFuncs() {
102102
let inputOpt = this.serverless.processedInput.options;
103103
return inputOpt.function
104-
? [inputOpt.functionObj]
104+
? [this.serverless.service.functions[inputOpt.function]]
105105
: values(this.serverless.service.functions);
106106
}
107107

0 commit comments

Comments
 (0)