mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 08:34:20 +02:00
parent
33b2395ff0
commit
10150c3198
@ -88,6 +88,9 @@ void AgentUtility::PrintAgents(std::ostream& fp)
|
|||||||
|
|
||||||
void AgentUtility::PrintAgentRepository(std::ostream& fp, const Dictionary::Ptr& repository)
|
void AgentUtility::PrintAgentRepository(std::ostream& fp, const Dictionary::Ptr& repository)
|
||||||
{
|
{
|
||||||
|
if (!repository)
|
||||||
|
return;
|
||||||
|
|
||||||
ObjectLock olock(repository);
|
ObjectLock olock(repository);
|
||||||
BOOST_FOREACH(const Dictionary::Pair& kv, repository) {
|
BOOST_FOREACH(const Dictionary::Pair& kv, repository) {
|
||||||
fp << std::setw(4) << " "
|
fp << std::setw(4) << " "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user