]> git.openstreetmap.org Git - chef.git/commitdiff
Fix scoping of File.exist?
authorTom Hughes <tom@compton.nu>
Wed, 17 Nov 2021 18:52:31 +0000 (18:52 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 17 Nov 2021 18:52:31 +0000 (18:52 +0000)
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