Skip to content

Commit e51a90f

Browse files
author
Aleksander Dikanski
committed
Revert and remove unnecessary function
1 parent d43d499 commit e51a90f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/stackInformation.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,12 @@ module.exports = {
171171
BbPromise.bind(this).then(this.aliasStackLoadAliasTemplates)
172172
)
173173
.spread((currentTemplate, aliasStackTemplates) => {
174-
const filteredAliasStackTemplates = _.without(aliasStackTemplates, ['stack', `${this._provider.naming.getStackName()}-${this._alias}`]);
175-
const currentAliasStackTemplate =
176-
_.get(_.first(filteredAliasStackTemplates, 'template', {}));
174+
const currentAliasStackTemplate = _.get(_.first(aliasStackTemplates, 'template', {}));
177175
const deployedAliasStackTemplates = _.map(filteredAliasStackTemplates, template => template.template);
178176

179177
this._serverless.service.provider.deployedCloudFormationTemplate = currentTemplate;
180178
this._serverless.service.provider.deployedCloudFormationAliasTemplate = currentAliasStackTemplate;
181-
this._serverless.service.provider.deployedAliasTemplates = filteredAliasStackTemplates;
179+
this._serverless.service.provider.deployedAliasTemplates = aliasStackTemplates;
182180
return BbPromise.resolve([ currentTemplate, deployedAliasStackTemplates, currentAliasStackTemplate ]);
183181
});
184182
},

0 commit comments

Comments
 (0)