]> git.openstreetmap.org Git - chef.git/commitdiff
Remove testing hack
authorTom Hughes <tom@compton.nu>
Sat, 3 Dec 2022 11:48:03 +0000 (11:48 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 3 Dec 2022 11:48:03 +0000 (11:48 +0000)
cookbooks/prometheus/resources/exporter.rb

index 2d6a7cbc872876143b2f658623c49210e2391dcd..d0ee2021526496e5b1d9d5454633ce10593f86d8 100644 (file)
@@ -148,9 +148,7 @@ action_class do
   end
 
   def listen_address
   end
 
   def listen_address
-    if true
-      "127.0.0.1:#{new_resource.port}"
-    elsif new_resource.address
+    if new_resource.address
       "#{new_resource.address}:#{new_resource.port}"
     elsif node[:prometheus][:mode] == "wireguard"
       "[#{node[:prometheus][:address]}]:#{new_resource.port}"
       "#{new_resource.address}:#{new_resource.port}"
     elsif node[:prometheus][:mode] == "wireguard"
       "[#{node[:prometheus][:address]}]:#{new_resource.port}"