The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com
https://tickets.puppetlabs.com. See the following page for information on filing tickets with JIRA:
aug object is closed on need_to_run but is neede after that in execute_changes.
|Affected Puppet version:||Branch:|
Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com
First I’m using Debian with puppet 2.7.13-1 and libaugeas0 0.9.0-1, and ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
I’m just trying to set some sudoers settings but fails with this behavior:
1) need_to_run is called and it calls the method close at the end because @aug.save returns a nil, and everyone knows that not nil is true ;) 2) after that the execute_changes method needs the @aug object but is not there then fails with a “change from need_to_run to 0 failed: undefined method `match' for nil:NilClass”
I commented the all the code in the conditional in provider/augeas/augeas.rb with the “if not return_value or resource.noop? or not save_result”, then close is not called and works perfectly, I don’t really know what is going on since http://augeas.net/docs/api.html says that save must return 0 or 1.
Maybe I’m skipping something obvious here, but the augeas code runs perfectly using augtool, so. I have no idea what it is, and this seems as a bug for me.
Hope this can help.