Issue #17773 has been updated by eric sorenson. Status changed from Unreviewed to Needs More Information Assignee set to Nick Cammorato
Nick, by "a few other issues crop up" do you mean different bugs in the bug tracker about this? Or problems in other providers that are also related to not having an explicit `to_s` called on them? Can you explain why the `to_s` fixes the problem? I don't dispute that it helps (though I haven't set up a reproduction step) but I don't understand why. ---------------------------------------- Bug #17773: Using Mailalias provider causes agent to throw "Could not prefetch mailalias provider 'aliases': undefined method `strip' for nil:NilClass" https://projects.puppetlabs.com/issues/17773#change-84076 Author: Nick Cammorato Status: Needs More Information Priority: Normal Assignee: Nick Cammorato Category: Red Hat Target version: Affected Puppet version: 2.7.19 Keywords: Branch: CENTOS6.3, Ruby 1.8.7, Puppet agent/master 2.7.19 On a non-standard alias location, and as a virtual resource, as follows: @mailalias { $name: ensure => $ensures, recipient => $destination, target => $target, } Everything still processes(apparently correctly) when the resources are realized, but a refresh is triggered on each and every puppet run. The offending code seems to be in providers/mailalias/aliases.rb within the process method. Altering the following: ret[:name] = records[0].strip ret[:recipient] = records[1].strip so that the to_s conversion is implicit appears to resolve it. As in: ret[:name] = records[0].to_s.strip ret[:recipient] = records[1].to_s.strip I couldn't find anything in the changelog for 2.7.20 indicating that this was fixed. -- 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.
