mirror of https://github.com/Icinga/icinga2.git
Merge pull request #5308 from Icinga/fix/null-validation
Improve validation for attributes which must not be 'null' fixes #5288
This commit is contained in:
commit
e474d1572f
|
@ -31,7 +31,7 @@ abstract class DbConnection : ConfigObject
|
|||
default {{{ return "icinga_"; }}}
|
||||
};
|
||||
|
||||
[config] Dictionary::Ptr cleanup {
|
||||
[config, required] Dictionary::Ptr cleanup {
|
||||
default {{{ return new Dictionary(); }}}
|
||||
};
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ class Host : Checkable
|
|||
load_after Endpoint;
|
||||
load_after Zone;
|
||||
|
||||
[config, no_user_modify] array(name(HostGroup)) groups {
|
||||
[config, no_user_modify, required] array(name(HostGroup)) groups {
|
||||
default {{{ return new Array(); }}}
|
||||
};
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ class Service : Checkable < ServiceNameComposer
|
|||
load_after Host;
|
||||
load_after Zone;
|
||||
|
||||
[config, no_user_modify] array(name(ServiceGroup)) groups {
|
||||
[config, no_user_modify, required] array(name(ServiceGroup)) groups {
|
||||
default {{{ return new Array(); }}}
|
||||
};
|
||||
|
||||
|
|
|
@ -40,10 +40,10 @@ class TimePeriod : CustomVarObject
|
|||
[config] bool prefer_includes {
|
||||
default {{{ return true; }}}
|
||||
};
|
||||
[config] array(name(TimePeriod)) excludes {
|
||||
[config, required] array(name(TimePeriod)) excludes {
|
||||
default {{{ return new Array(); }}}
|
||||
};
|
||||
[config] array(name(TimePeriod)) includes {
|
||||
[config, required] array(name(TimePeriod)) includes {
|
||||
default {{{ return new Array(); }}}
|
||||
};
|
||||
[state, no_user_modify] Value valid_begin;
|
||||
|
|
|
@ -36,7 +36,7 @@ class User : CustomVarObject
|
|||
return m_DisplayName;
|
||||
}}}
|
||||
};
|
||||
[config, no_user_modify] array(name(UserGroup)) groups {
|
||||
[config, no_user_modify, required] array(name(UserGroup)) groups {
|
||||
default {{{ return new Array(); }}}
|
||||
};
|
||||
[config, navigation] name(TimePeriod) period (PeriodRaw) {
|
||||
|
|
Loading…
Reference in New Issue