| Puppet Version: 7.24.0 Puppet Server Version: 7.11.0 OS Name/Version: Ubuntu 20.04 ```
- TODO
class some::path { notify \{ 'False as message': message => false} # Ignore resource! notify { 'True as message': message => true} # Show `true` notify { 'Undef as message': message => undef} # Show `` }
include some::path ``` https://www.puppet.com/docs/puppet/5.5/types/notify.html#notify-attribute-message The documentation says that message can only be a string. But if you pass false, you will get a very convenient mechanism for debugging information. To what extent is the use of false acceptable? Desired Behavior: I was expecting something like this ``` Error: Evaluation Error: Illegal title type at index 0. Expected String, got Boolean ``` Actual Behavior: ``` ❯ puppet apply test.pp Notice: Compiled catalog for macbook-air-wilful.local in environment production in 0.02 seconds Notice: true Notice: /Stage[main]/Some::Path/Notify[True as message]/message: defined 'message' as true Notice: Undef as message Notice: /Stage[main]/Some::Path/Notify[Undef as message]/message: defined 'message' as 'Undef as message' Notice: Applied catalog in 0.01 seconds ``` |