From 9022dc91ea893a7c66acfc962ec415f061d36134 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Thu, 29 Jun 2023 10:20:34 +0200 Subject: [PATCH] Templates are now (slightly) checked. --- src/main.cr | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main.cr b/src/main.cr index 6bbe16a..18146d9 100644 --- a/src/main.cr +++ b/src/main.cr @@ -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