Issue #2566 has been updated by Henrik Lindberg. Status changed from Accepted to Duplicate
---------------------------------------- Feature #2566: Please provide a method to consider empty variables an error https://projects.puppetlabs.com/issues/2566#change-73256 Author: Mark Painter Status: Duplicate Priority: Normal Assignee: Category: parser Target version: Affected Puppet version: 0.24.8 Keywords: Branch: I would like a way to consider unset variables an error. As an example, if doing something like creating a file where the path includes a variable to account for differences in operating system, and then I typo the variable name it may still create the file in the incorrect location. Eg: $my_directory = "$operatingsystem" ? { "Darwin" => "/a", "Solaris" => "/b", "Debian" => "/c", } file { "foo" path => "$my_dir/foo", ensure => file, } Where I've forgotten that I named my variable my_directory, and when trying to reference it later, end up creating a file "foo" in the root directory. -- 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.
