Unverified Commit a05f7908 authored by Tim Smith's avatar Tim Smith Committed by GitHub

Merge pull request #141 from nvwls/no-search

Skip search if ['rsyslog']['server_search'] is empty
parents 7ae6b30c 03ffdb6c
......@@ -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