"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/icinga/compatutility.cpp" between
icinga2-2.11.5.tar.gz and icinga2-2.12.0.tar.gz

About: Icinga 2 is an enterprise grade monitoring system which keeps watch over networks and any conceivable network resource.

compatutility.cpp  (icinga2-2.11.5):compatutility.cpp  (icinga2-2.12.0)
skipping to change at line 252 skipping to change at line 252
ObjectLock olock(notification); ObjectLock olock(notification);
for (const UserGroup::Ptr& ug : notification->GetUserGroups()) { for (const UserGroup::Ptr& ug : notification->GetUserGroups()) {
usergroups.insert(ug); usergroups.insert(ug);
} }
} }
return usergroups; return usergroups;
} }
/* Used in DB IDO, StatusDataWriter, Livestatus, CompatLogger, GelfWriter. */ /* Used in DB IDO, StatusDataWriter, Livestatus, CompatLogger, GelfWriter, Icing aDB. */
String CompatUtility::GetCheckResultOutput(const CheckResult::Ptr& cr) String CompatUtility::GetCheckResultOutput(const CheckResult::Ptr& cr)
{ {
if (!cr) if (!cr)
return Empty; return Empty;
String output; String output;
String raw_output = cr->GetOutput(); String raw_output = cr->GetOutput();
size_t line_end = raw_output.Find("\n"); size_t line_end = raw_output.Find("\n");
return raw_output.SubStr(0, line_end); return raw_output.SubStr(0, line_end);
} }
/* Used in DB IDO, StatusDataWriter and Livestatus. */ /* Used in DB IDO, StatusDataWriter and Livestatus, IcingaDB. */
String CompatUtility::GetCheckResultLongOutput(const CheckResult::Ptr& cr) String CompatUtility::GetCheckResultLongOutput(const CheckResult::Ptr& cr)
{ {
if (!cr) if (!cr)
return Empty; return Empty;
String long_output; String long_output;
String output; String output;
String raw_output = cr->GetOutput(); String raw_output = cr->GetOutput();
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)