1
0
mirror of https://github.com/ceph/ceph synced 2025-03-25 11:48:05 +00:00

Merge PR into master

* refs/pull/25540/head:
	mgr/ServiceMap: show service's id on summary

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2019-03-05 09:12:26 -06:00
commit bf615abbce

View File

@ -49,6 +49,18 @@ struct ServiceMap {
std::ostringstream ss;
ss << daemons.size() << (daemons.size() > 1 ? " daemons" : " daemon")
<< " active";
if (!daemons.empty()) {
ss << " (";
for (auto p = daemons.begin(); p != daemons.end(); ++p) {
if (p != daemons.begin()) {
ss << ", ";
}
ss << p->first;
}
ss << ")";
}
return ss.str();
}