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