Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 2746f41c authored by MICHON Nicolas's avatar MICHON Nicolas
Browse files

[dev] DNS generator: ignore empty generated files

parent bbb90a60
No related branches found
No related tags found
No related merge requests found
......@@ -566,6 +566,7 @@ refapi["sites"].each { |site_uid, site|
site_zone_changed = false
site_records.each{ |type, records|
next if records.empty?
zone_file_path = File.join(zones_dir, site_uid + "-" + type + ".db")
zone = load_zone(zone_file_path, site_uid, site, false)
if diff_zone_file(zone, records)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment