Issue #14105 has been updated by Adrien Thebo.

I've looked at this code and while it isn't clear if the issue is resolved in 
master, the tests don't seem to cover the behavior change. Since there hasn't 
been an update on the pull request or this ticket i'm going to close the pull 
request.
----------------------------------------
Bug #14105: aug object is closed on need_to_run but is neede after that in 
execute_changes.
https://projects.puppetlabs.com/issues/14105#change-83109

Author: Jorge Eduardo Cardona
Status: Accepted
Priority: Normal
Assignee: 
Category: Doh!
Target version: 3.x
Affected Puppet version: 
Keywords: 
Branch: 


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.

Greetings.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to