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

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

Signed-off-by: default avatarJoe Nuspl <nuspl@nvwls.com>
parent 3d4430f6
......@@ -29,7 +29,7 @@ results = search(:node, node['rsyslog']['server_search']).map do |server|
ipaddress = server['cloud']['local_ipv4']
end
ipaddress
end
end unless node['rsyslog']['server_search'].to_s.empty?
server_ips = Array(node['rsyslog']['server_ip']) + Array(results)
rsyslog_servers = []
......
Markdown is supported
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