diff --git a/lib/actions/DashSummary.js b/lib/actions/DashSummary.js index a01d1e107..9d6a952f2 100644 --- a/lib/actions/DashSummary.js +++ b/lib/actions/DashSummary.js @@ -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