Skip to content

Commit fc4c28e

Browse files
authored
Merge branch 'master' into update_runtime_exported_functions
2 parents 3261105 + 2ae6be9 commit fc4c28e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

provider/scalewayProvider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ScalewayProvider {
4343

4444
return new BbPromise((resolve) => {
4545
this.setCredentials(options);
46-
46+
4747
this.apiUrl = 'https://api.scaleway.com/functions/v1alpha2/regions/fr-par';
4848
this.apiManager = axios.create({
4949
baseURL: this.apiUrl,

shared/validate.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ module.exports = {
7777
functionErrors.push(`Runtime ${this.runtime} is not supported. Function runtime must be one of the following: ${availableRuntimesMessage}`);
7878
}
7979

80+
let functionErrors = [];
81+
let containers = [];
82+
83+
const functions = this.serverless.service.functions;
84+
if (functions && Object.keys(functions).length !== 0) {
85+
functionNames = Object.keys(functions);
86+
8087
functionNames.forEach((functionName) => {
8188
const func = functions[functionName];
8289
// Check if function handler exists

0 commit comments

Comments
 (0)