]> granicus.if.org Git - icinga2/commitdiff
Move new downtime constants into the Icinga namespace 6574/head
authorGunnar Beutner <gunnar@beutner.name>
Sat, 25 Aug 2018 17:35:01 +0000 (19:35 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Sat, 25 Aug 2018 17:35:01 +0000 (19:35 +0200)
lib/icinga/downtime.cpp

index 6e5bc0210a3fd7fd4e292db318f546940a295dae..aafefadb274c1313fce31665c4076dbc3f421490 100644 (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