From ebff22208e9ac8f0d46270a2ef4a05432bd95418 Mon Sep 17 00:00:00 2001 From: Jordi Prats Date: Mon, 30 Mar 2020 15:49:08 +0200 Subject: [PATCH] cat --- 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 4b3b767..4a08ccc 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('bash |i|').to_s + genetic_id = Facter::Util::Resolution.exec('cat |i|').to_s unless genetic_id.nil? or genetic_id.empty? Facter.add('eypconf_|i|') do