mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
DashSummary: Fix error
This commit is contained in:
parent
8c38a6af96
commit
05abbb4fa8
@ -40,8 +40,9 @@ module.exports = function(SPlugin, serverlessPath) {
|
||||
|
||||
dashSummary() {
|
||||
|
||||
let stages = this.S.state.getStages(),
|
||||
components = this.S.state.getComponents(),
|
||||
let _this = this,
|
||||
stages = _this.S.state.getStages(),
|
||||
components = _this.S.state.getComponents(),
|
||||
stagesNum = 0,
|
||||
regionsNum = 0,
|
||||
componentsNum = 0,
|
||||
@ -59,7 +60,7 @@ module.exports = function(SPlugin, serverlessPath) {
|
||||
SCli.log(`${Object.keys(stages).length} stages ------------------------------`);
|
||||
Object.keys(stages).forEach(function(stage) {
|
||||
stagesNum++;
|
||||
let regions = this.S.state.getRegions(stages[stage]);
|
||||
let regions = _this.S.state.getRegions(stages[stage]);
|
||||
SCli.log(` |_ ${stages[stage]} (${regions.length} regions)`);
|
||||
|
||||
// list regions for stage
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user