error
This commit is contained in:
parent
68b91a27a2
commit
8535a4c73a
10
lib/index.js
10
lib/index.js
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue