We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4007e11 commit 7cef731Copy full SHA for 7cef731
src/function-value-plugin.js
@@ -8,11 +8,11 @@ export default class FunctionValuePlugin {
8
const classes = serverless.classes;
9
10
const getLambdaLogicalId = address => {
11
- if (!functions.includes(address)) {
12
- throw new classes.Error(`Function "${address}" not defined`);
+ if (functions.includes(address)) {
+ return naming.getLambdaLogicalId(address);
13
}
14
15
- return naming.getLambdaLogicalId(address);
+ throw new classes.Error(`Function "${address}" not defined`);
16
};
17
18
this.configurationVariablesSources = {
0 commit comments