Use fqdn to generate domain name of txt records

This commit is contained in:
Girish Ramakrishnan
2015-09-28 17:20:59 -07:00
parent 2a989e455c
commit f8b41b703c
+1 -1
View File
@@ -22,7 +22,7 @@ function addSubdomain(zoneName, subdomain, type, value, callback) {
assert.strictEqual(typeof value, 'string');
assert.strictEqual(typeof callback, 'function');
var fqdn = subdomain !== '' && type === 'TXT' ? subdomain + '.' + zoneName : config.appFqdn(subdomain);
var fqdn = subdomain !== '' && type === 'TXT' ? subdomain + '.' + config.fqdn() : config.appFqdn(subdomain);
debug('addSubdomain: zoneName: %s subdomain: %s type: %s value: %s fqdn: %s', zoneName, subdomain, type, value, fqdn);