Issue #7158 has been reported by Andrew Gaffney. ---------------------------------------- Bug #7158: extlookup should have more useful error messages https://projects.puppetlabs.com/issues/7158
Author: Andrew Gaffney Status: Unreviewed Priority: Normal Assignee: Category: Target version: Affected Puppet version: Keywords: Branch: Currently, the extlookup function has no debugging and only one error message: `err: Could not retrieve catalog from remote server: Error 400 on SERVER: No match found for 'nagios_parent' in any data file during extlookup() at ...` This happened because I misspelled '$extlookup_precedence' (it was wrong on the site I copied-n-pasted it from). I ended up having to edit extlookup.rb, add a bunch of Puppet.debug() statements, and then run the puppetmaster in debug mode before I finally figured out the problem. Since the extlookup() function requires that $extlookup_datadir and $extlookup_precedence be set in order to work properly, it would be nice if it would generate an error message saying that one (or both) of these values are not set. It would also be useful to spit out a different error if there are 0 files located via those 2 variables (assuming they are set). -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
