From 2746f41c6a39bad977e90a6774fbae8d89257964 Mon Sep 17 00:00:00 2001 From: Nicolas Michon <nicolas.michon@inria.fr> Date: Fri, 7 Apr 2017 16:47:41 +0200 Subject: [PATCH] [dev] DNS generator: ignore empty generated files --- generators/puppet/bindg5k.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/generators/puppet/bindg5k.rb b/generators/puppet/bindg5k.rb index 2d17370196a..c93301057b3 100644 --- a/generators/puppet/bindg5k.rb +++ b/generators/puppet/bindg5k.rb @@ -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) -- GitLab