Issue #16497 has been reported by eric sorenson.

----------------------------------------
Bug #16497: Puppet should be more defensive about resources whose titles are 
undefined variables
https://projects.puppetlabs.com/issues/16497

Author: eric sorenson
Status: Investigating
Priority: Normal
Assignee: eric sorenson
Category: language
Target version: 
Affected Puppet version: 
Keywords: undef
Branch: 


There are a variety of inelegant failure modes when using variables either 
directly or via string-interpolation as titles for resources.

This might go back to #5820 and the recurring idea of an equivalent mode in 
puppet to perl's 'use strict', where using undef variables throws specific 
errors, but at the very least, code like this:

<pre>
$foo = undef

package { $foo: ensure => present }
</pre>

Should not result in output like this:

<pre>
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install undef' returned 1: You 
need to be root to perform this command.
</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