diff --git a/resources/libraries/update_hosts_file.rb b/resources/libraries/update_hosts_file.rb index 1dc8e20..a3cf058 100644 --- a/resources/libraries/update_hosts_file.rb +++ b/resources/libraries/update_hosts_file.rb @@ -38,7 +38,6 @@ def update_hosts_file # Avoids having duplicate services in the list service_key = new_service.split('.').first hosts_hash.each do |_ip, services| - services_before = services.dup services.delete_if { |service| service.split('.').first == service_key } end