Issue #4692 has been updated by Matt Robinson.

Status changed from Ready for Testing to Ready for Checkin
Assignee deleted (Matt Robinson)

This has already been +1'd on the list and had quite a bit of discussion around 
it, so I'm moving it to ready for checkin.
----------------------------------------
Bug #4692: undefined variables cause :undef to be passed to functions
http://projects.puppetlabs.com/issues/4692

Author: micah -
Status: Ready for Checkin
Priority: Normal
Assignee: 
Category: functions
Target version: 2.6.2
Affected version: 2.6.0
Keywords: 
Branch: http://github.com/stereotype441/puppet/tree/ticket/2.6.x/4692


I have upgraded my puppetmaster to 2.6-rc3, and ran a puppet run on one of my 
clients that is running 0.25.5. i have a manifest that does a:   $attrdrives = 
split($diskdrives_smartattr, ","), but now with the new puppet 2.6, that gives 
me an error when the manifest is run:

<pre>private method `split' called for :undef:Symbol</pre>

This is because the $diskdrives_smartattr variable is empty. Previously this 
wouldn't cause this error. I can fix this in my manifest by doing something 
like putting an if test of the variable:

<pre>
  if $diskdrives_smartattr {
    $attrdrives = split($diskdrives_smartattr, ",")
    smart::smartattr { $attrdrives: }
  }
</pre>



-- 
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