]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/providers/plugin.rb
Switch git.osm.org to letsencrypt
[chef.git] / cookbooks / munin / providers / plugin.rb
index bcbb07746f85572e4639730950f8ed838754d5f3..23b9753d87428d0ca87a9627c37cac907d2b3118 100644 (file)
@@ -62,12 +62,11 @@ def plugin_path
 end
 
 def target_path
-  case
-  when ::File.exist?(target)
+  if ::File.exist?(target)
     target
-  when ::File.exist?("/usr/local/share/munin/plugins/#{target}")
+  elsif ::File.exist?("/usr/local/share/munin/plugins/#{target}")
     "/usr/local/share/munin/plugins/#{target}"
-  when ::File.exist?("/usr/share/munin/plugins/#{target}")
+  elsif ::File.exist?("/usr/share/munin/plugins/#{target}")
     "/usr/share/munin/plugins/#{target}"
   end
 end