Skip to content
This repository was archived by the owner on Dec 31, 2021. It is now read-only.

Use of blank? instead of nil? to check hash value #1

Merged
merged 1 commit into from
May 21, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions definitions/collectd_plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
owner "root"
group "root"
mode "644"
if params[:template].blank?
if params[:template].nil?
source "plugin.conf.erb"
cookbook params[:cookbook] || "collectd"
else
Expand All @@ -45,7 +45,7 @@
end
retry
end
if not params[:path].blank?
if not params[:path].nil?
t.variables[:options][:paths] << params[:path]
end
t.variables[:options][:modules][params[:module] || params[:name]] = params[:options]
Expand Down