This commit is contained in:
Max Wilets 2019-07-23 21:58:15 -06:00
parent 68b91a27a2
commit 8535a4c73a
1 changed files with 6 additions and 4 deletions

View File

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