File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ const regionToUrlRootMap = region => ({
29
29
class Client {
30
30
constructor ( serverless , options ) {
31
31
this . serverless = serverless ;
32
- this . stage = options . stage || _ . get ( serverless , 'service.provider.stage' )
33
- this . region = options . region || _ . get ( serverless , 'service.provider.region' ) ;
34
32
this . provider = 'aws' ;
35
33
this . aws = this . serverless . getProvider ( this . provider ) ;
36
34
@@ -65,6 +63,8 @@ class Client {
65
63
} ,
66
64
67
65
'client:deploy:deploy' : ( ) => {
66
+ this . stage = options . stage || _ . get ( serverless , 'service.provider.stage' )
67
+ this . region = options . region || _ . get ( serverless , 'service.provider.region' ) ;
68
68
this . _validateAndPrepare ( )
69
69
. then ( this . _processDeployment . bind ( this ) ) ;
70
70
} ,
You can’t perform that action at this time.
0 commit comments