From c8a457d96fc3e001c8e31f4678fbd73a7f1c9ead Mon Sep 17 00:00:00 2001 From: truthbk Date: Mon, 14 Nov 2022 08:20:13 +0900 Subject: [PATCH] [fips-proxy] read file lazily --- recipes/dd-fips-proxy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/dd-fips-proxy.rb b/recipes/dd-fips-proxy.rb index 3db52ac9..fd9d4d71 100644 --- a/recipes/dd-fips-proxy.rb +++ b/recipes/dd-fips-proxy.rb @@ -42,7 +42,7 @@ owner 'root' group 'root' mode 0766 - content ::File.open('/etc/datadog-fips-proxy/datadog-fips-proxy.cfg.example').read + content lazy { ::File.open('/etc/datadog-fips-proxy/datadog-fips-proxy.cfg.example').read } not_if { ::File.exist?('/etc/datadog-fips-proxy/datadog-fips-proxy.cfg') } action :create end