Make wildcard a separate provider

this is required because the config object is not returned for
locked domains and the UI display for the provider field is then
wrong.
This commit is contained in:
Girish Ramakrishnan
2018-09-06 19:58:46 -07:00
parent 44ed650538
commit 004f00a97b
3 changed files with 23 additions and 3 deletions
+2 -1
View File
@@ -73,7 +73,7 @@ DomainsError.STILL_BUSY = 'Still busy';
DomainsError.IN_USE = 'In Use';
DomainsError.INTERNAL_ERROR = 'Internal error';
DomainsError.ACCESS_DENIED = 'Access denied';
DomainsError.INVALID_PROVIDER = 'provider must be route53, gcdns, digitalocean, gandi, cloudflare, namecom, noop, manual or caas';
DomainsError.INVALID_PROVIDER = 'provider must be route53, gcdns, digitalocean, gandi, cloudflare, namecom, noop, wildcard, manual or caas';
// choose which subdomain backend we use for test purpose we use route53
function api(provider) {
@@ -90,6 +90,7 @@ function api(provider) {
case 'namecom': return require('./dns/namecom.js');
case 'noop': return require('./dns/noop.js');
case 'manual': return require('./dns/manual.js');
case 'wildcard': return require('./dns/manual.js');
default: return null;
}
}