This commit is contained in:
Max Wilets 2019-07-23 21:58:15 -06:00
parent 68b91a27a2
commit 8535a4c73a

View File

@ -51,7 +51,7 @@ module.exports.create = function(config) {
additions: [ additions: [
{ {
kind: "dns#resourceRecordSet", kind: "dns#resourceRecordSet",
name: ch.dnsHost, name: ch.dnsHost + ".",
type: "TXT", type: "TXT",
ttl: 300, // TODO test for lowest allowed value ttl: 300, // TODO test for lowest allowed value
rrdatas: [ch.dnsAuthorization], rrdatas: [ch.dnsAuthorization],
@ -65,14 +65,16 @@ module.exports.create = function(config) {
//"isServing": true //"isServing": true
} }
}); });
})
})
.then(function(resp) { .then(function(resp) {
if (resp.body.error) { if (resp.body.error) {
console.error(resp.headers); console.error(resp.headers);
console.error(resp.body); console.error(resp.body);
throw new Error(resp.body.error); throw new Error(resp.body.error);
} }
}); return null
});
}, },
remove: function(data) { remove: function(data) {
// console.info('Remove TXT', data); // console.info('Remove TXT', data);