Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit 3f818fc

Browse files
author
subash adhikari
authored
parse variables (#14)
* resolve variables * bump version 1.2.1
1 parent 7cdb298 commit 3f818fc

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

src/index.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)