mirror of https://github.com/Icinga/icinga2.git
Bugfix: services property doesn't work when the first host definition is abstract.
Fixes #3300
This commit is contained in:
parent
cfb07e9e2c
commit
e426548863
|
@ -29,8 +29,8 @@ Host::Host(const Dictionary::Ptr& properties)
|
|||
: DynamicObject(properties)
|
||||
{
|
||||
if (!m_InitializerDone) {
|
||||
ConfigItem::OnCommitted.connect(boost::bind(&Host::ObjectCommittedHandler, this, _1));
|
||||
ConfigItem::OnRemoved.connect(boost::bind(&Host::ObjectRemovedHandler, this, _1));
|
||||
ConfigItem::OnCommitted.connect(boost::bind(&Host::ObjectCommittedHandler, _1));
|
||||
ConfigItem::OnRemoved.connect(boost::bind(&Host::ObjectRemovedHandler, _1));
|
||||
|
||||
m_InitializerDone = true;
|
||||
}
|
||||
|
|
|
@ -50,8 +50,8 @@ public:
|
|||
private:
|
||||
static bool m_InitializerDone;
|
||||
|
||||
void ObjectCommittedHandler(const ConfigItem::Ptr& item);
|
||||
void ObjectRemovedHandler(const ConfigItem::Ptr& item);
|
||||
static void ObjectCommittedHandler(const ConfigItem::Ptr& item);
|
||||
static void ObjectRemovedHandler(const ConfigItem::Ptr& item);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue