Commit 782d36cf authored by jtimberman's avatar jtimberman
Browse files

cook-121, use first method on block to limit search

parent e4a28450
......@@ -19,7 +19,7 @@
include_recipe "rsyslog"
rsyslog_server = node[:rsyslog][:server] ? node[:rsyslog][:server] : search(:node, "rsyslog_server:true").map { |n| n["fqdn"] }
rsyslog_server = node[:rsyslog][:server] ? node[:rsyslog][:server] : search(:node, "rsyslog_server:true").map { |n| n["fqdn"] }.first
unless node[:rsyslog][:server]
template "/etc/rsyslog.d/remote.conf" do
......
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