Issue #4692 has been reported by micah -.
----------------------------------------
Bug #4692: empty factor variable causes private method `split' called for
:undef:Symbol
http://projects.puppetlabs.com/issues/4692
Author: micah -
Status: Unreviewed
Priority: Normal
Assignee:
Category: functions
Target version:
Affected version: 2.6.0rc3
Keywords:
Branch:
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.