diff --git a/lib/base/dynamicobject.ti b/lib/base/dynamicobject.ti index b9163262e..c92870d70 100644 --- a/lib/base/dynamicobject.ti +++ b/lib/base/dynamicobject.ti @@ -48,7 +48,6 @@ abstract class DynamicObject [config] String zone; [config, internal, get_protected] Array::Ptr templates; [config] Dictionary::Ptr methods; - [config] Dictionary::Ptr vars (VarsRaw); [get_protected] bool active; [get_protected] bool paused { default {{{ return true; }}} @@ -58,11 +57,8 @@ abstract class DynamicObject [get_protected] bool pause_called; [get_protected] bool resume_called; [enum] HAMode ha_mode (HAMode); - Dictionary::Ptr authority_info; [protected] Dictionary::Ptr extensions; - [state] Value override_vars; - [protected] bool state_loaded; }; diff --git a/lib/icinga/checkable.cpp b/lib/icinga/checkable.cpp index ad44f05d5..234d0582b 100644 --- a/lib/icinga/checkable.cpp +++ b/lib/icinga/checkable.cpp @@ -197,7 +197,7 @@ int Checkable::GetModifiedAttributes(void) const if (!GetOverrideCheckPeriod().IsEmpty()) attrs |= ModAttrCheckTimeperiod; - if (!GetOverrideVars().IsEmpty()) + if (GetOverrideVars()) attrs |= ModAttrCustomVariable; // TODO: finish diff --git a/lib/icinga/command.cpp b/lib/icinga/command.cpp index d77a5e9f9..b7d979da2 100644 --- a/lib/icinga/command.cpp +++ b/lib/icinga/command.cpp @@ -30,7 +30,7 @@ int Command::GetModifiedAttributes(void) const { int attrs = 0; - if (!GetOverrideVars().IsEmpty()) + if (GetOverrideVars()) attrs |= ModAttrCustomVariable; return attrs; diff --git a/lib/icinga/customvarobject.cpp b/lib/icinga/customvarobject.cpp index 095055220..8687af256 100644 --- a/lib/icinga/customvarobject.cpp +++ b/lib/icinga/customvarobject.cpp @@ -28,7 +28,7 @@ boost::signals2::signal