]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/openvpn/recipes/default.rb
Fix some issues identified by rubocop
[chef.git] / cookbooks / openvpn / recipes / default.rb
index fbf6af9b6109e031b1e8ad6b7e4a89a0df80dce7..a1a52f13e455c42204f1a6720eddec6cb0f4449a 100644 (file)
@@ -46,7 +46,7 @@ node[:openvpn][:tunnels].each do |name,details|
       creates "/etc/openvpn/#{name}.key"
     end
 
-    if File.exists?("/etc/openvpn/#{name}.key")
+    if File.exist?("/etc/openvpn/#{name}.key")
       node.set[:openvpn][:keys][name] = IO.read("/etc/openvpn/#{name}.key")
     end
   elsif peer and peer[:openvpn]