Skip to content

Commit

Permalink
refactor(Print): Read provider values from provider
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Sep 24, 2020
1 parent b22e97e commit b53716a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/plugins/print/print.js
Expand Up @@ -50,11 +50,12 @@ class Print {
if (typeof this.cache.serviceProvider === 'string') {
service.provider = { name: this.cache.serviceProvider };
}
const serviceProvider = this.serverless.service.provider;
service.provider = _.merge(
{
stage: 'dev',
region: 'us-east-1',
variableSyntax: '\\${([^{}]+?)}',
stage: serviceProvider.stage,
region: serviceProvider.region,
variableSyntax: serviceProvider.variableSyntax,
},
service.provider
);
Expand Down

0 comments on commit b53716a

Please sign in to comment.