mirror of https://github.com/Icinga/icinga2.git
parent
3c68f1b2e0
commit
6193255446
|
@ -162,6 +162,8 @@ void ObjectListCommand::PrintProperties(std::ostream& fp, const Dictionary::Ptr&
|
|||
|
||||
int offset = 2;
|
||||
|
||||
ObjectLock olock(props);
|
||||
|
||||
BOOST_FOREACH(const Dictionary::Pair& kv, props) {
|
||||
String key = kv.first;
|
||||
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");
|
||||
|
||||
ObjectLock olock(messages);
|
||||
|
||||
BOOST_FOREACH(const Value& msg, messages) {
|
||||
PrintHint(fp, msg, indent);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue