]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/resources/exporter.rb
Fix scoping of File.exist?
[chef.git] / cookbooks / prometheus / resources / exporter.rb
index 2a22198df32b57e04ea4df6225ee0c9d4e5c3e2c..a69d940a0b1d61e006c733567e115c8fb11fab3d 100644 (file)
@@ -99,7 +99,7 @@ action_class do
   end
 
   def service_exists?
-    File.exist?("/etc/systemd/system/#{service_name}.service")
+    ::File.exist?("/etc/systemd/system/#{service_name}.service")
   end
 
   def executable_path