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 1
1
{
2
2
"name" : " serverless-plugin-sumologic" ,
3
- "version" : " 1.2.0 " ,
3
+ "version" : " 1.2.1 " ,
4
4
"description" : " Serverless plugin to create sumologic stack" ,
5
5
"main" : " src/index.js" ,
6
6
"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 {
10
10
this . serverless = serverless ;
11
11
this . options = options ;
12
12
this . provider = serverless . getProvider ( 'aws' ) ;
13
- this . config = getConfig ( { serverless, options } ) ;
14
13
15
14
this . logger = {
16
15
log : msg => this . serverless . cli . log ( format ( 'Sumologic:' , msg ) ) ,
@@ -39,13 +38,16 @@ class ServerlessSumologicPlugin {
39
38
}
40
39
41
40
deploy ( ) {
41
+ const config = getConfig ( {
42
+ serverless : this . serverless ,
43
+ options : this . options ,
44
+ } ) ;
45
+
42
46
return Promise . resolve ( )
43
47
. then ( ( ) => this . validate ( ) )
44
48
. 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 } ) )
49
51
. then ( ( ) => this . logger . log ( MESSAGE . CLI_DONE ) )
50
52
. catch ( err => Promise . reject ( err . message ) ) ;
51
53
}
You can’t perform that action at this time.
0 commit comments