Skip to content

Commit 78795be

Browse files
authored
fix: Properly recognize individual function (#725)
1 parent 2ce9d8e commit 78795be

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
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

test.js

-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ test(
212212
dockerImage: 'break the build to log the command',
213213
},
214214
});
215-
console.log('STDOUT', stdout);
216215
t.true(
217216
stdout.includes(
218217
`-v ${__dirname}${sep}tests${sep}base${sep}custom_ssh:/root/.ssh/custom_ssh:z`

0 commit comments

Comments
 (0)