Skip to content

Commit 63a0525

Browse files
committed
Reject all non python runtimes
If there is a runtime specified
1 parent 83ff75c commit 63a0525

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ class PkgPyFuncs {
5151
}
5252

5353
selectAll() {
54-
const functions = _.reject(this.serverless.service.functions, { runtime: 'nodejs6.10' });
54+
const functions = _.reject(this.serverless.service.functions, (target) => {
55+
return target.runtime && !(target.runtime + '').match(/python/i);
56+
});
57+
5558
const info = _.map(functions, (target) => {
5659
return {
5760
name: target.name,

0 commit comments

Comments
 (0)