Compat: Don't dump empty CV keys.

Fixes #5306
This commit is contained in:
Michael Friedrich 2013-12-11 17:18:01 +01:00
parent 7a107b7dbd
commit 7e4da258fc
1 changed files with 7 additions and 5 deletions

View File

@ -520,6 +520,7 @@ void StatusDataWriter::DumpCustomAttributes(std::ostream& fp, const DynamicObjec
ObjectLock olock(custom);
BOOST_FOREACH(const Dictionary::Pair& kv, custom) {
if (!kv.first.IsEmpty()) {
fp << "\t";
if (kv.first != "notes" && kv.first != "action_url" && kv.first != "notes_url" &&
@ -529,6 +530,7 @@ void StatusDataWriter::DumpCustomAttributes(std::ostream& fp, const DynamicObjec
fp << kv.first << "\t" << kv.second << "\n";
}
}
}
void StatusDataWriter::UpdateObjectsCache(void)
{