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.
This commit is contained in:
parent
d985dd371a
commit
dace8aea1f
|
@ -382,7 +382,6 @@ module.exports.create = function (le) {
|
||||||
// Certificates
|
// Certificates
|
||||||
, getAsync: function (args) {
|
, getAsync: function (args) {
|
||||||
var copy = utils.merge(args, le);
|
var copy = utils.merge(args, le);
|
||||||
var renewing;
|
|
||||||
args = utils.tplCopy(copy);
|
args = utils.tplCopy(copy);
|
||||||
|
|
||||||
return core.certificates.checkAsync(args).then(function (certs) {
|
return core.certificates.checkAsync(args).then(function (certs) {
|
||||||
|
@ -393,13 +392,14 @@ module.exports.create = function (le) {
|
||||||
|
|
||||||
if (core.certificates._isRenewable(args, certs)) {
|
if (core.certificates._isRenewable(args, certs)) {
|
||||||
// it's time to renew the available cert
|
// it's time to renew the available cert
|
||||||
renewing = core.certificates.renewAsync(args, certs);
|
certs.renewing = core.certificates.renewAsync(args, certs);
|
||||||
if (args.waitForRenewal) {
|
if (args.waitForRenewal) {
|
||||||
return renewing;
|
return certs.renewing;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// return existing unexpired (although potentially stale) certificates when available
|
// 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;
|
return certs;
|
||||||
}).then(function (results) {
|
}).then(function (results) {
|
||||||
// returns pems
|
// returns pems
|
||||||
|
|
Loading…
Reference in New Issue