Issue #12238 has been updated by Ben Hughes.
This is on Puppet 2.7.10, by the way. ---------------------------------------- Bug #12238: Exported resources doesn't include the file where the problem arose. https://projects.puppetlabs.com/issues/12238 Author: Ben Hughes Status: Unreviewed Priority: Normal Assignee: Category: exported resources Target version: Affected Puppet version: Keywords: Branch: # Overview # When you mess up a resource that gets exported you don't get any indication of where you made that error. # Expected Behaviour # <pre> err Failed to apply catalog: Parameter ensure failed: Invalid value false. Valid values are present, absent. at line 84 of exported resource from /path/to/file/exportme.pp </pre> # Actual Behaviour # <pre> err Failed to apply catalog: Parameter ensure failed: Invalid value false. Valid values are present, absent. at line 84 </pre> No filename! # Detail # So, if you're lucky, you can kind of find this in the database. <pre> (root@localhost) [puppet]> select * from resources where line = 84; +------+----------------------+----------------+---------+----------------+----------+------+---------------------+---------------------+ | id | title | restype | host_id | source_file_id | exported | line | updated_at | created_at | +------+----------------------+----------------+---------+----------------+----------+------+---------------------+---------------------+ | 1699 | check_disk_forge-dev | Nagios_service | 56 | 602 | 1 | 84 | 2012-01-26 15:42:23 | 2012-01-26 15:42:23 | +------+----------------------+----------------+---------+----------------+----------+------+---------------------+---------------------+ </pre> and then <pre> (root@localhost) [puppet]> select * from source_files where source_files.id = 602; +-----+--------------------------------------------------------------------------------+------+---------------------+---------------------+ | id | filename | path | updated_at | created_at | +-----+--------------------------------------------------------------------------------+------+---------------------+---------------------+ | 602 | /etc/puppet/environments/ilikeitwhenyoudontwatch/dist/nagios/manifests/init.pp | NULL | 2012-01-26 13:01:11 | 2012-01-26 13:01:11 | +-----+--------------------------------------------------------------------------------+------+---------------------+---------------------+ </pre> But that assumes no collisions. It could at least tell you it's an exported resource. # Work Around # Going in to the database manually.... -- 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.
