Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
Coremunity
-
Platform Core KANBAN
-
Customer Feedback
-
Bug Fix
-
Description
A class with an optional parameter with no type that defaults to undef isn't handled well by /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/types/type_mismatch_describer.rb
For example if I have a class:
class test::validation ( |
Optional $whatever = undef
|
){
|
notice($whatever)
|
|
}
|
and in hiera:
test::validation::whatever: 1234
|
Applying the class to an agent results in the stack trace I've attached here.