Templates are now (slightly) checked.
parent
65c928dd62
commit
9022dc91ea
|
@ -223,9 +223,8 @@ def main
|
||||||
|
|
||||||
accepted_domains.each do |domain|
|
accepted_domains.each do |domain|
|
||||||
template_file = "#{dir}/#{domain}.json"
|
template_file = "#{dir}/#{domain}.json"
|
||||||
Baguette::Log.error "TODO: check for #{template_file}"
|
|
||||||
zone = DNSManager::Storage::Zone.from_json File.read "#{template_file}"
|
zone = DNSManager::Storage::Zone.from_json File.read "#{template_file}"
|
||||||
puts "zone #{domain}: #{zone}"
|
puts "default zone for #{domain}: #{zone}"
|
||||||
rescue e
|
rescue e
|
||||||
Baguette::Log.error "error reading template #{template_file}: #{e}"
|
Baguette::Log.error "error reading template #{template_file}: #{e}"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -236,8 +235,6 @@ def main
|
||||||
#end
|
#end
|
||||||
end
|
end
|
||||||
|
|
||||||
exit 1
|
|
||||||
|
|
||||||
if simulation
|
if simulation
|
||||||
pp! configuration
|
pp! configuration
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue