From 40f1416a4ac582cb45a198f9d7baba72eb34d124 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 3 Dec 2022 11:48:03 +0000 Subject: [PATCH] Remove testing hack --- cookbooks/prometheus/resources/exporter.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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}" -- 2.39.5