]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/attributes/default.rb
Fix some issues identified by rubocop
[chef.git] / cookbooks / hardware / attributes / default.rb
index 46b5893a8746398535b02ab02c4cc7184465e59e..2a4e8e2724eef198c7d9b45df0c651b372ea72ae 100644 (file)
@@ -33,7 +33,7 @@ if node[:kernel][:modules].include?("ipmi_si")
   default[:hardware][:modules] |= [ "ipmi_devintf" ]
 end
 
-if File.exists?("/proc/xen")
+if File.exist?("/proc/xen")
   default[:hardware][:watchdog] = "xen_wdt"
 elsif node[:kernel][:modules].include?("i6300esb")
   default[:hardware][:watchdog] = "none"