diff options
author | Michael Scherer <misc@mageia.org> | 2011-03-22 17:27:04 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-03-22 17:27:04 +0000 |
commit | 429b96e025018795a65f3a9b952a6609e53c899c (patch) | |
tree | b8b4d902ded0004cf250998f76cb69b64de3cc1e /modules/stored_config/lib | |
parent | c835415f36b3fb86fb245f5502320b30b667a3cd (diff) | |
download | puppet-429b96e025018795a65f3a9b952a6609e53c899c.tar puppet-429b96e025018795a65f3a9b952a6609e53c899c.tar.gz puppet-429b96e025018795a65f3a9b952a6609e53c899c.tar.bz2 puppet-429b96e025018795a65f3a9b952a6609e53c899c.tar.xz puppet-429b96e025018795a65f3a9b952a6609e53c899c.zip |
- add a comment about the new interface ( more robust )
Diffstat (limited to 'modules/stored_config/lib')
-rw-r--r-- | modules/stored_config/lib/puppet/parser/functions/get_fact.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/stored_config/lib/puppet/parser/functions/get_fact.rb b/modules/stored_config/lib/puppet/parser/functions/get_fact.rb index 1aae8b5a..8acdb2d5 100644 --- a/modules/stored_config/lib/puppet/parser/functions/get_fact.rb +++ b/modules/stored_config/lib/puppet/parser/functions/get_fact.rb @@ -7,7 +7,8 @@ module Puppet::Parser::Functions newfunction(:get_fact, :type => :rvalue) do |args| node = args[0] fact = args[1] - + # TODO use + # Puppet::Node::Facts.indirection.find(Puppet[:certname]) Puppet::Rails.connect() return Puppet::Rails::FactValue.find( :first, :joins => [ :host, :fact_name ], |