Templates are now (slightly) checked.
parent
65c928dd62
commit
9022dc91ea
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue