Fix waitForDns

This commit is contained in:
Girish Ramakrishnan
2018-11-05 23:00:55 -08:00
parent ee6cca5cdf
commit ccfd385beb
+1 -2
View File
@@ -449,8 +449,7 @@ function waitForDnsRecord(subdomain, domain, type, value, options, callback) {
get(domain, function (error, domainObject) {
if (error) return callback(error);
const name = getName(domainObject, subdomain, type);
const hostname = `${name}.${domainObject.zoneName}`;
const hostname = fqdn(subdomain, domainObject);
api(domainObject.provider).waitForDns(hostname, domainObject.zoneName, type, value, options, callback);
});