Skip to content

Commit

Permalink
Merge pull request #1227 from MikaelSmith/fix-FACT-1277
Browse files Browse the repository at this point in the history
(FACT-1277) Ensure Puppet external facts are loaded
  • Loading branch information
peterhuene committed Nov 19, 2015
2 parents e8493b7 + 7b108e9 commit 1aa380a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/ruby/ruby.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ static const char load_puppet[] =
" $LOAD_PATH << Puppet[:libdir]\n"
"end\n"
"Facter.reset\n"
"Facter.search_external([Puppet[:pluginfactdest]])\n"
"if Puppet.respond_to? :initialize_facts\n"
" Puppet.initialize_facts\n"
"else\n"
" Facter.add(:puppetversion) do\n"
" setcode { Puppet.version.to_s }\n"
" end\n"
"end\n"
"Facter.search_external([Puppet[:pluginfactdest]])";
"end\n";

namespace facter { namespace ruby {

Expand Down

0 comments on commit 1aa380a

Please sign in to comment.