From dace8aea1fc8e0d53431d6ff313f32835951f01c Mon Sep 17 00:00:00 2001 From: Ben Schmidt Date: Fri, 25 Aug 2017 16:48:24 +1000 Subject: [PATCH] Change to address integration with greenlock-cli. The integration was broken by 51739625176ff24fd09afc49e94eb4edb1327490, primarily because the required property was incorrectly underscore-prefixed. This fix restores it, unprefixed. --- lib/core.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core.js b/lib/core.js index b3bf834..52a6b4f 100644 --- a/lib/core.js +++ b/lib/core.js @@ -382,7 +382,6 @@ module.exports.create = function (le) { // Certificates , getAsync: function (args) { var copy = utils.merge(args, le); - var renewing; args = utils.tplCopy(copy); return core.certificates.checkAsync(args).then(function (certs) { @@ -393,13 +392,14 @@ module.exports.create = function (le) { if (core.certificates._isRenewable(args, certs)) { // it's time to renew the available cert - renewing = core.certificates.renewAsync(args, certs); + certs.renewing = core.certificates.renewAsync(args, certs); if (args.waitForRenewal) { - return renewing; + return certs.renewing; } } // return existing unexpired (although potentially stale) certificates when available + // there will be an additional .renewing property if the certs are being asynchronously renewed return certs; }).then(function (results) { // returns pems