mirror of
https://github.com/yavook/kiwi-simple-metrics.git
synced 2024-11-21 23:32:59 +00:00
handle empty aggregate reports correctly
This commit is contained in:
parent
61ede82f36
commit
ec322276dd
2 changed files with 3 additions and 1 deletions
1
.vscode/launch.json
vendored
1
.vscode/launch.json
vendored
|
@ -12,7 +12,6 @@
|
||||||
"env": {
|
"env": {
|
||||||
"METRIC__INTERVAL": "5",
|
"METRIC__INTERVAL": "5",
|
||||||
"METRIC__LOG__ENABLED": "True",
|
"METRIC__LOG__ENABLED": "True",
|
||||||
"METRIC__DISK__PATHS": "[\"/var\", \"/\", \"/dev\"]",
|
|
||||||
"METRIC__EXTERNAL__EXECUTABLES": "[\"${workspaceFolder}/dummy-metric\"]",
|
"METRIC__EXTERNAL__EXECUTABLES": "[\"${workspaceFolder}/dummy-metric\"]",
|
||||||
},
|
},
|
||||||
"justMyCode": true
|
"justMyCode": true
|
||||||
|
|
|
@ -102,6 +102,9 @@ class Report:
|
||||||
|
|
||||||
reports = [data.report for data in get_data()]
|
reports = [data.report for data in get_data()]
|
||||||
|
|
||||||
|
if not reports:
|
||||||
|
return None
|
||||||
|
|
||||||
return cls(
|
return cls(
|
||||||
result=settings.report_outer.format(
|
result=settings.report_outer.format(
|
||||||
name=settings.name,
|
name=settings.name,
|
||||||
|
|
Loading…
Reference in a new issue