From: Tom Hughes Date: Sat, 3 Dec 2022 11:48:03 +0000 (+0000) Subject: Remove testing hack X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/40f1416a4ac582cb45a198f9d7baba72eb34d124 Remove testing hack --- diff --git a/cookbooks/prometheus/resources/exporter.rb b/cookbooks/prometheus/resources/exporter.rb index 2d6a7cbc8..d0ee20215 100644 --- a/cookbooks/prometheus/resources/exporter.rb +++ b/cookbooks/prometheus/resources/exporter.rb @@ -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}"