Browse Source

Change to address integration with greenlock-cli.

The integration was broken by 5173962517,
primarily because the required property was incorrectly underscore-prefixed.
This fix restores it, unprefixed.
acmev2
Ben Schmidt 7 years ago
parent
commit
dace8aea1f
  1. 6
      lib/core.js

6
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

Loading…
Cancel
Save