mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
More bugfixes.
This commit is contained in:
parent
0270d9cf52
commit
900e65d009
@ -68,9 +68,9 @@ void ConfigObject::SetLocal(bool value)
|
|||||||
|
|
||||||
bool ConfigObject::IsLocal(void) const
|
bool ConfigObject::IsLocal(void) const
|
||||||
{
|
{
|
||||||
bool value;
|
bool value = false;
|
||||||
GetProperties()->GetProperty("__local", &value);
|
GetProperties()->GetProperty("__local", &value);
|
||||||
return (value != 0);
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigObject::SetAbstract(bool value)
|
void ConfigObject::SetAbstract(bool value)
|
||||||
@ -80,9 +80,9 @@ void ConfigObject::SetAbstract(bool value)
|
|||||||
|
|
||||||
bool ConfigObject::IsAbstract(void) const
|
bool ConfigObject::IsAbstract(void) const
|
||||||
{
|
{
|
||||||
long value;
|
bool value = false;
|
||||||
GetProperties()->GetProperty("__abstract", &value);
|
GetProperties()->GetProperty("__abstract", &value);
|
||||||
return (value != 0);
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigObject::Commit(void)
|
void ConfigObject::Commit(void)
|
||||||
|
@ -74,8 +74,8 @@ public:
|
|||||||
*/
|
*/
|
||||||
void operator()(const TArgs& args)
|
void operator()(const TArgs& args)
|
||||||
{
|
{
|
||||||
vector<ObserverType>::size_type i = 0;
|
typename vector<ObserverType>::size_type i = 0;
|
||||||
for (i = 0; i < m_Observers.size(); i++) {
|
for (i = 0; i < m_Observers.size(); ) {
|
||||||
int result = m_Observers[i](args);
|
int result = m_Observers[i](args);
|
||||||
|
|
||||||
if (result == -1)
|
if (result == -1)
|
||||||
|
@ -62,6 +62,7 @@ int IcingaApplication::Main(const vector<string>& args)
|
|||||||
|
|
||||||
/* load config file */
|
/* load config file */
|
||||||
ConfigObject::Ptr fileComponentConfig = make_shared<ConfigObject>("component", "configfile");
|
ConfigObject::Ptr fileComponentConfig = make_shared<ConfigObject>("component", "configfile");
|
||||||
|
fileComponentConfig->SetLocal(true);
|
||||||
fileComponentConfig->SetProperty("configFilename", args[1]);
|
fileComponentConfig->SetProperty("configFilename", args[1]);
|
||||||
fileComponentConfig->Commit();
|
fileComponentConfig->Commit();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user