Handle hyphenatedSubdomains in the backend verifyDnsConfig()

This commit is contained in:
Johannes Zellner
2018-08-22 12:16:19 +02:00
parent 59700e455e
commit b35c81e546
10 changed files with 23 additions and 18 deletions
+2 -1
View File
@@ -241,7 +241,8 @@ function verifyDnsConfig(dnsConfig, fqdn, zoneName, ip, callback) {
secretAccessKey: dnsConfig.secretAccessKey,
region: dnsConfig.region || 'us-east-1',
endpoint: dnsConfig.endpoint || null,
listHostedZonesByName: true // new/updated creds require this perm
listHostedZonesByName: true, // new/updated creds require this perm
hyphenatedSubdomains: !!dnsConfig.hyphenatedSubdomains
};
if (process.env.BOX_ENV === 'test') return callback(null, credentials); // this shouldn't be here