Merge pull request #6574 from gunnarbeutner/fix/move-downtime-constants

Move new downtime constants into the Icinga namespace
This commit is contained in:
Michael Friedrich 2018-09-03 09:28:16 +02:00 committed by GitHub
commit f0c9098a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -46,9 +46,9 @@ INITIALIZE_ONCE(&Downtime::StaticInitialize);
void Downtime::StaticInitialize()
{
ScriptGlobal::Set("DowntimeNoChildren", "DowntimeNoChildren");
ScriptGlobal::Set("DowntimeTriggeredChildren", "DowntimeTriggeredChildren");
ScriptGlobal::Set("DowntimeNonTriggeredChildren", "DowntimeNonTriggeredChildren");
ScriptGlobal::Set("Icinga.DowntimeNoChildren", "DowntimeNoChildren", true);
ScriptGlobal::Set("Icinga.DowntimeTriggeredChildren", "DowntimeTriggeredChildren", true);
ScriptGlobal::Set("Icinga.DowntimeNonTriggeredChildren", "DowntimeNonTriggeredChildren", true);
}
String DowntimeNameComposer::MakeName(const String& shortName, const Object::Ptr& context) const