Was:
./bin/ceph -s
cluster:
id:
0f704e51-f496-4812-a782-
f6bcc490a109
health: HEALTH_ERR
mon%plurals% %names% %isorare% low on available space
Now:
./bin/ceph -s
cluster:
id:
1bb2cc6d-ba6f-467a-b811-
994101a42749
health: HEALTH_ERR
mon a is low on available space
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
}
pending_health.merge(p.second);
}
- for (auto p : pending_health.checks) {
+ for (auto &p : pending_health.checks) {
p.second.summary = boost::regex_replace(
p.second.summary,
boost::regex("%num%"), stringify(names[p.first].size()));