Project

General

Profile

« Previous | Next » 

Revision a3913ebe

Added by Romain Tartière 7 months ago

Fix calling function empty() with Numeric value

This produce a warning:

```
2023-11-19T05:33:05.421+02:00 WARN [qtp925335889-44] [puppetserver] Puppet Calling function empty() with Numeric value is deprecated. (file: /usr/local/etc/puppet/code/environments/production/modules/dns/manifests/logging/channel.pp, line: 61)
```

Since we have data-types in place (`Optional[Integer]`), we do not need
to care about an empty String. Only `undef` will evaluate to false, and
it is the precise case we want to raise an error for.

  • added
  • modified
  • copied
  • renamed
  • deleted