From 2ea6cda83b200ebea3c811f6c98fffdbdf6c3feb Mon Sep 17 00:00:00 2001 From: Jordi Prats Date: Mon, 30 Mar 2020 16:14:28 +0200 Subject: [PATCH] retry --- lib/facter/eypconf_generic_id.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/facter/eypconf_generic_id.rb b/lib/facter/eypconf_generic_id.rb index ac776e8..d297fac 100644 --- a/lib/facter/eypconf_generic_id.rb +++ b/lib/facter/eypconf_generic_id.rb @@ -1,6 +1,6 @@ Dir.entries("/etc/eypconf/id").select {|f| !File.directory? f}.each do |i| - genetic_id = Facter::Util::Resolution.exec('cat |i|').to_s + genetic_id = Facter::Util::Resolution.exec('bash -c \'cat |i|\'').to_s unless genetic_id.nil? or genetic_id.empty? Facter.add('eypconf_|i|') do