]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1788] removed the default for 'filetype' from the spec file.
authorJINMEI Tatuya <jinmei@isc.org>
Wed, 4 Apr 2012 17:11:36 +0000 (10:11 -0700)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Thu, 5 Apr 2012 07:53:36 +0000 (09:53 +0200)
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.

src/bin/auth/auth.spec.pre.in
src/bin/auth/auth_config.cc

index 71f4863a2d926f104371684b5f83fe992862a52f..3eeb35e0cda746c1861fdf9a4a58ca18ad90fab6 100644 (file)
@@ -50,8 +50,7 @@
               },
               { "item_name": "filetype",
                 "item_type": "string",
-                "item_optional": true,
-                "item_default": "text"
+                "item_optional": true
               }]
             }
           }]
index af7ae0aed7fe050168382296f9a07b40c7ba49f7..3b391d3da56ead1e9fb1d2bafacc58f40292da5a 100644 (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";