Icinga / puppet-icinga2-legacy

(legacy) Puppet module for Icinga 2 (EOL)
GNU General Public License v2.0
55 stars 93 forks source link

[dev.icinga.com #11539] Allow null values for vars #351

Open icinga-migration opened 8 years ago

icinga-migration commented 8 years ago

This issue has been migrated from Redmine: https://dev.icinga.com/issues/11539

Created by invliD on 2016-04-07 00:09:43 +00:00

Assignee: (none) Status: New Target Version: (none) Last Update: 2016-04-07 00:09:43 +00:00 (in Redmine)


It's currently impossible to add a custom variable with a null value to an object. This can be necessary to override variables from a CheckCommand in a Service, for example.

The code at https://github.com/Icinga/puppet-icinga2/blob/develop/lib/puppet/icinga2/utils.rb only supports dicts, arrays, bools, ints, floats and strings, but not the undef/nil type.