mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
getResources() doesnt crash due to undefined variables anymore
This commit is contained in:
parent
78b90cca85
commit
2bf2c30536
@ -243,10 +243,10 @@ class ServerlessProject {
|
||||
* - Always populated
|
||||
*/
|
||||
|
||||
getResources() {
|
||||
getResources(options) {
|
||||
|
||||
let _this = this;
|
||||
|
||||
/*
|
||||
let componentFolders = fs.readdirSync(path.join(_this._S.config.projectPath, c));
|
||||
|
||||
// Backwards Compatibility Support for s-modules.json
|
||||
@ -287,7 +287,7 @@ class ServerlessProject {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
if (options.populate) {
|
||||
return this.getPopulated(options).cloudFormation;
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user