Issue #17773 has been updated by Nick Cammorato.

Any way to get this reviewed?  I included a fix(implicit to_s before strip) and 
I've seen a few other issues crop up that may all be related but I'd like to 
know if this will be resolved in future releases or if I'll have to patch 
things next upgrade.
----------------------------------------
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-79665

Author: Nick Cammorato
Status: Unreviewed
Priority: Normal
Assignee: 
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 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.

Reply via email to