From 46c1d45205acd330ffe0d1431985ab89e06f0f93 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 11 Feb 2016 13:47:06 -0500 Subject: [PATCH] updated to fix some pyconf bugs --- lib/core.js | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/core.js b/lib/core.js index a56d921..0799cf4 100644 --- a/lib/core.js +++ b/lib/core.js @@ -111,7 +111,10 @@ function writeRenewalConfig(args) { return mkdirpAsync(path.dirname(args.renewalPath)).then(function () { return pyconf.writeFileAsync(args.renewalPath, pyobj); }).then(function () { - return pyobj; + // NOTE + // writing twice seems to causes a bug, + // so instead we re-read the file from the disk + return pyconf.readFileAsync(args.renewalPath); }); } diff --git a/package.json b/package.json index c3bde47..7afdc1d 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "homedir": "^0.6.0", "letiny-core": "^1.0.3", "mkdirp": "^0.5.1", - "pyconf": "^1.1.0", + "pyconf": "^1.1.2", "request": "^2.67.0", "safe-replace": "^1.0.2" }