From bf489cb1ce8bd23eeffe2356b30bff75f2710e88 Mon Sep 17 00:00:00 2001 From: Miguel Calles Date: Mon, 8 Jun 2020 16:41:41 -0700 Subject: [PATCH] Bug fix --- .npmignore | 5 +++++ index.js | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..7780928 --- /dev/null +++ b/.npmignore @@ -0,0 +1,5 @@ +.eslintrc.js +.gitignore +.github +.jsbeautifyrc +examples \ No newline at end of file diff --git a/index.js b/index.js index 6a3564f..14e1ef7 100644 --- a/index.js +++ b/index.js @@ -54,7 +54,7 @@ module.exports = class ServerlessPlugin { 'listHostedZones' ); if (HostedZones.find((x) => x.Name === name)) { - this.log(`${zoneName} already exists.`); + this.log(`${name} already exists.`); return; } const createParams = { @@ -101,9 +101,9 @@ module.exports = class ServerlessPlugin { createParams ); if (!HostedZone || !HostedZone.Id) { - this.throwError(`Failed to create ${zoneName}`); + this.throwError(`Failed to create ${name}`); } - this.log(`Created ${zoneName}`); + this.log(`Created ${name}`); } catch (e) { this.throwError(e.message); }