dns: fqdn only needs domain string
This is from the caas days, when we had hyphenated subdomains flag
This commit is contained in:
@@ -105,7 +105,7 @@ async function upsert(domainObject, location, type, values) {
|
||||
|
||||
const domainConfig = domainObject.config,
|
||||
zoneName = domainObject.zoneName,
|
||||
fqdn = dns.fqdn(location, domainObject);
|
||||
fqdn = dns.fqdn(location, domainObject.domain);
|
||||
|
||||
debug('upsert: %s for zone %s of type %s with values %j', fqdn, zoneName, type, values);
|
||||
|
||||
@@ -166,7 +166,7 @@ async function get(domainObject, location, type) {
|
||||
|
||||
const domainConfig = domainObject.config,
|
||||
zoneName = domainObject.zoneName,
|
||||
fqdn = dns.fqdn(location, domainObject);
|
||||
fqdn = dns.fqdn(location, domainObject.domain);
|
||||
|
||||
const zone = await getZoneByName(domainConfig, zoneName);
|
||||
const result = await getDnsRecords(domainConfig, zone.id, fqdn, type);
|
||||
@@ -182,7 +182,7 @@ async function del(domainObject, location, type, values) {
|
||||
|
||||
const domainConfig = domainObject.config,
|
||||
zoneName = domainObject.zoneName,
|
||||
fqdn = dns.fqdn(location, domainObject);
|
||||
fqdn = dns.fqdn(location, domainObject.domain);
|
||||
|
||||
const zone = await getZoneByName(domainConfig, zoneName);
|
||||
|
||||
@@ -212,7 +212,7 @@ async function wait(domainObject, subdomain, type, value, options) {
|
||||
|
||||
const domainConfig = domainObject.config,
|
||||
zoneName = domainObject.zoneName,
|
||||
fqdn = dns.fqdn(subdomain, domainObject);
|
||||
fqdn = dns.fqdn(subdomain, domainObject.domain);
|
||||
|
||||
debug('wait: %s for zone %s of type %s', fqdn, zoneName, type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user