Templates are now (slightly) checked.

master
Philippe Pittoli 2023-06-29 10:20:34 +02:00
parent 65c928dd62
commit 9022dc91ea
1 changed files with 1 additions and 4 deletions

View File

@ -223,9 +223,8 @@ def main
accepted_domains.each do |domain|
template_file = "#{dir}/#{domain}.json"
Baguette::Log.error "TODO: check for #{template_file}"
zone = DNSManager::Storage::Zone.from_json File.read "#{template_file}"
puts "zone #{domain}: #{zone}"
puts "default zone for #{domain}: #{zone}"
rescue e
Baguette::Log.error "error reading template #{template_file}: #{e}"
exit 1
@ -236,8 +235,6 @@ def main
#end
end
exit 1
if simulation
pp! configuration
exit 0