| After looking at the code, I found the problem seemed to be here, in puppet/application/lookup.rb :
def generate_scope |
if options[:node] |
node = options[:node] |
else |
node = Puppet[:node_name_value] |
# If we want to lookup the node we are currently on |
# we must returning these settings to their default values |
Puppet.settings[:facts_terminus] = 'facter' |
end
|
For some reason, not setting
Puppet.settings[:facts_terminus] = 'facter' |
breaks the
I don't know whey, I'm not really too familiar with the code. If you change the code to do
Puppet.settings[:facts_terminus] = 'facter' |
..whether you specify the node option or not, it doesn't break. So I don't know if this is a real solution, but the attached patch fixes the error and returns data correctly as far as I can tell. lookup_add_extra_values_with_node.patch |