merge and pass args

This commit is contained in:
AJ ONeal 2016-09-15 00:40:57 -06:00
parent b4a17bcaff
commit 395974d455
1 changed files with 3 additions and 2 deletions

View File

@ -242,14 +242,15 @@ module.exports.create = function (le) {
//
certReq.setChallenge = function (domain, key, value, done) {
log(args.debug, "setChallenge called for '" + domain + "'");
var copy = utils.merge({ domains: [domain] }, le);
var copy = utils.merge({ domains: [domain] }, args);
copy = utils.merge(copy, le);
utils.tplCopy(copy);
// TODO need to save challengeType
le.challenges[args.challengeType].set(copy, domain, key, value, done);
};
certReq.removeChallenge = function (domain, key, done) {
log(args.debug, "setChallenge called for '" + domain + "'");
log(args.debug, "removeChallenge called for '" + domain + "'");
var copy = utils.merge({ domains: [domain] }, le);
utils.tplCopy(copy);