Skip to content

Commit

Permalink
Merge pull request #18 from v-studios/feature/cs/GH-17_not_expanding_…
Browse files Browse the repository at this point in the history
…custom_variable

Fix GH-17 variables do not get expanded
  • Loading branch information
fernando-mc authored Feb 12, 2018
2 parents b4762dc + 2336df6 commit caaae55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ const regionToUrlRootMap = region => ({
class Client {
constructor(serverless, options){
this.serverless = serverless;
this.stage = options.stage || _.get(serverless, 'service.provider.stage')
this.region = options.region || _.get(serverless, 'service.provider.region');
this.provider = 'aws';
this.aws = this.serverless.getProvider(this.provider);

Expand Down Expand Up @@ -65,6 +63,8 @@ class Client {
},

'client:deploy:deploy': () => {
this.stage = options.stage || _.get(serverless, 'service.provider.stage')
this.region = options.region || _.get(serverless, 'service.provider.region');
this._validateAndPrepare()
.then(this._processDeployment.bind(this));
},
Expand Down

0 comments on commit caaae55

Please sign in to comment.