From 85af1672e2f5ffe7ad644290e13c0ca32af044e2 Mon Sep 17 00:00:00 2001 From: Jordi Prats Date: Mon, 30 Mar 2020 16:25:45 +0200 Subject: [PATCH] generic id --- 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 cb23163..4cffb8d 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 -c 'cat #{i}'").to_s + genetic_id = Facter::Util::Resolution.exec("bash -c 'cat /etc/eypconf/id/#{i}'").to_s unless genetic_id.nil? or genetic_id.empty? Facter.add("eypconf_#{i}") do