This repository was archived by the owner on Oct 25, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " serverless-plugin-sumologic" ,
3- "version" : " 1.2.0 " ,
3+ "version" : " 1.2.1 " ,
44 "description" : " Serverless plugin to create sumologic stack" ,
55 "main" : " src/index.js" ,
66 "repository" : " https://github.com/ACloudGuru/a-cloud-guru/tree/master/packages/serverless-plugin-sumologic" ,
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ class ServerlessSumologicPlugin {
1010 this . serverless = serverless ;
1111 this . options = options ;
1212 this . provider = serverless . getProvider ( 'aws' ) ;
13- this . config = getConfig ( { serverless, options } ) ;
1413
1514 this . logger = {
1615 log : msg => this . serverless . cli . log ( format ( 'Sumologic:' , msg ) ) ,
@@ -39,13 +38,16 @@ class ServerlessSumologicPlugin {
3938 }
4039
4140 deploy ( ) {
41+ const config = getConfig ( {
42+ serverless : this . serverless ,
43+ options : this . options ,
44+ } ) ;
45+
4246 return Promise . resolve ( )
4347 . then ( ( ) => this . validate ( ) )
4448 . then ( ( ) => this . logger . log ( MESSAGE . CLI_START ) )
45- . then ( ( ) => generateTemplate ( { config : this . config } ) )
46- . then ( template =>
47- this . cloudformation . deploy ( { config : this . config , template } )
48- )
49+ . then ( ( ) => generateTemplate ( { config } ) )
50+ . then ( template => this . cloudformation . deploy ( { config, template } ) )
4951 . then ( ( ) => this . logger . log ( MESSAGE . CLI_DONE ) )
5052 . catch ( err => Promise . reject ( err . message ) ) ;
5153 }
You can’t perform that action at this time.
0 commit comments