hosts = merge_hosts_and_hostgroups service, servers, hostgroups, ''
excludehosts = merge_hosts_and_hostgroups service, servers, hostgroups, 'exclude'
- excludehosts.each{ |host|
+ excludehosts.uniq.each{ |host|
if hosts.delete(host) == nil
- throw "Cannot remove host #{host} from service #{service['service_description']}: it's not included anyway or excluded twice."
+ puts "info: [service #{service['service_description']}] not excluding host #{host} - it's not included anyway."
end
}