Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Utilities/StorageFactory/src/StatisticsSenderService.cc
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ void StatisticsSenderService::fillUDP(const std::string &siteName,
} else {
os << "\"fallback\": false, ";
}
os << "\"type\": ";
os << "\"read_type\": ";
switch (fileinfo.m_type) {
case edm::InputType::Primary: {
os << "\"primary\", ";
Expand Down
5 changes: 4 additions & 1 deletion Utilities/StorageFactory/test/test_file_statistics_sender.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ function testJSON {
import json
with open('test.json') as f:
for line in f:
json.loads(line)
d = json.loads(line)
for k in d.keys():
if k in ['producer', 'type', 'type_prefix', 'timestamp', 'host']:
raise RuntimeError("Found restricted keyword %s"%k)
EOF
RET=$?
if [ "x$RET" != "x0" ]; then
Expand Down