2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 13:37:55 +00:00

[1788] removed the default for 'filetype' from the spec file.

for optional items setting the default doesn't make sense, but we also have
test cases where syntax validation is skipped, so changing it to non-optional
will break existing test cases.  at least for now, it seems to make most sense
to keep it optional and define the default within the parser code.
This commit is contained in:
JINMEI Tatuya
2012-04-04 10:11:36 -07:00
committed by Michal 'vorner' Vaner
parent 2645b19434
commit efb79bb638
2 changed files with 1 additions and 3 deletions

View File

@@ -50,8 +50,7 @@
},
{ "item_name": "filetype",
"item_type": "string",
"item_optional": true,
"item_default": "text"
"item_optional": true
}]
}
}]

View File

@@ -165,7 +165,6 @@ MemoryDatasourceConfig::build(ConstElementPtr config_value) {
isc_throw(AuthConfigError, "Missing zone file for zone: "
<< origin_txt);
}
// XXX: we need to hardcode the default, see above.
ConstElementPtr filetype = zone_config->get("filetype");
const string filetype_txt = filetype ? filetype->stringValue() :
"text";