]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/resources/exporter.rb
Remove testing hack
[chef.git] / cookbooks / prometheus / resources / exporter.rb
index 2d6a7cbc872876143b2f658623c49210e2391dcd..d0ee2021526496e5b1d9d5454633ce10593f86d8 100644 (file)
@@ -148,9 +148,7 @@ action_class do
   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}"