Commit 03ffdb6c authored by joe.nuspl's avatar joe.nuspl
Browse files

Skip search if ['rsyslog']['server_search'] is empty

Signed-off-by: default avatarJoe Nuspl <>
parent 3d4430f6
......@@ -29,7 +29,7 @@ results = search(:node, node['rsyslog']['server_search']).map do |server|
ipaddress = server['cloud']['local_ipv4']
end unless node['rsyslog']['server_search'].to_s.empty?
server_ips = Array(node['rsyslog']['server_ip']) + Array(results)
rsyslog_servers = []
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment