Skip to content

undefined method 'blank?' #5

@bscott

Description

@bscott

Under chef-client version 11.8.2, following error occurs when using the collectd_plugin LWRP.

Relevant File Content:
----------------------
/var/chef/cache/cookbooks/collectd/definitions/collectd_plugin.rb:

 18:  #
 19:  
 20:  define :collectd_plugin, :options => {}, :template => nil, :cookbook => nil do
 21:    template "/etc/collectd/plugins/#{params[:name]}.conf" do
 22:      owner "root"
 23:      group "root"
 24:      mode "644"
 25>>     if params[:template].blank?
 26:        source "plugin.conf.erb"
 27:        cookbook params[:cookbook] || "collectd"
 28:      else
 29:        source params[:template]
 30:        cookbook params[:cookbook]
 31:      end
 32:      variables :name=>params[:name], :options=>params[:options]
 33:      notifies :restart, resources(:service => "collectd")
 34:    end

ERROR: undefined method `blank?' for nil:NilClass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions