mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-31 01:24:19 +02:00
parent
3c68f1b2e0
commit
6193255446
@ -162,6 +162,8 @@ void ObjectListCommand::PrintProperties(std::ostream& fp, const Dictionary::Ptr&
|
|||||||
|
|
||||||
int offset = 2;
|
int offset = 2;
|
||||||
|
|
||||||
|
ObjectLock olock(props);
|
||||||
|
|
||||||
BOOST_FOREACH(const Dictionary::Pair& kv, props) {
|
BOOST_FOREACH(const Dictionary::Pair& kv, props) {
|
||||||
String key = kv.first;
|
String key = kv.first;
|
||||||
Value val = kv.second;
|
Value val = kv.second;
|
||||||
@ -195,6 +197,8 @@ void ObjectListCommand::PrintHints(std::ostream& fp, const Dictionary::Ptr& debu
|
|||||||
|
|
||||||
Array::Ptr messages = debug_hints->Get("messages");
|
Array::Ptr messages = debug_hints->Get("messages");
|
||||||
|
|
||||||
|
ObjectLock olock(messages);
|
||||||
|
|
||||||
BOOST_FOREACH(const Value& msg, messages) {
|
BOOST_FOREACH(const Value& msg, messages) {
|
||||||
PrintHint(fp, msg, indent);
|
PrintHint(fp, msg, indent);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user