X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b20599b6503be65674c3e420be6cca91b507ac0a..f9a223297545b98090c533f10991d60334087fcb:/cookbooks/munin/providers/plugin.rb diff --git a/cookbooks/munin/providers/plugin.rb b/cookbooks/munin/providers/plugin.rb index c058524b9..293719066 100644 --- a/cookbooks/munin/providers/plugin.rb +++ b/cookbooks/munin/providers/plugin.rb @@ -42,7 +42,7 @@ action :create do variables new_resource.conf_variables end - updated = updated || c.updated_by_last_action? + updated ||= c.updated_by_last_action? end new_resource.updated_by_last_action(updated) @@ -61,7 +61,7 @@ action :delete do action :delete end - updated = updated || c.updated_by_last_action? + updated ||= c.updated_by_last_action? end new_resource.updated_by_last_action(updated) @@ -79,8 +79,6 @@ def target_path "/usr/local/share/munin/plugins/#{target}" when ::File.exist?("/usr/share/munin/plugins/#{target}") "/usr/share/munin/plugins/#{target}" - else - nil end end