1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

BUG: D_EXTEND should not apply DEFAULTS{} (#1055)

* BUG: D_EXTEND should not apply DEFAULTS{}

Fixes https://github.com/StackExchange/dnscontrol/issues/1042

* go generate
This commit is contained in:
Tom Limoncelli
2021-03-01 10:53:29 -05:00
committed by GitHub
parent 46e9715b67
commit 975055fb20
3 changed files with 118 additions and 115 deletions

View File

@ -110,9 +110,6 @@ function D_EXTEND(name) {
throw name + ' was not declared yet and therefore cannot be updated. Use D() before.';
}
domain.obj.subdomain = name.substr(0, name.length-domain.obj.name.length - 1);
for (var i = 0; i < defaultArgs.length; i++) {
processDargs(defaultArgs[i], domain.obj);
}
for (var i = 1; i < arguments.length; i++) {
var m = arguments[i];
processDargs(m, domain.obj);