summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKerim Gokarslan <kgokarsl@cisco.com>2017-10-09 16:19:40 -0700
committerKerim Gokarslan <kgokarsl@cisco.com>2017-10-09 16:56:36 -0700
commit5511522fce8d3d394f2d9b73fbd910032f75f53d (patch)
tree2af2c1c121cf99af86f2b8784d964051f327a055
parent9114d2d93d637b563ae15dd61b6c22ea01c2d8db (diff)
NFVBENCH-36 Send results to fluentd on show-summary option
Change-Id: I7c3a37456e627267dda26fc4d892aa32b10fd7aa Signed-off-by: Kerim Gokarslan <kgokarsl@cisco.com>
-rw-r--r--nfvbench/nfvbench.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/nfvbench/nfvbench.py b/nfvbench/nfvbench.py
index 84f9838..f09af90 100644
--- a/nfvbench/nfvbench.py
+++ b/nfvbench/nfvbench.py
@@ -464,7 +464,10 @@ def main():
if opts.summary:
with open(opts.summary) as json_data:
- print NFVBenchSummarizer(json.load(json_data), None)
+ result = json.load(json_data)
+ if opts.user_label:
+ result['config']['user_label'] = opts.user_label
+ print NFVBenchSummarizer(result, fluent_logger)
sys.exit(0)
# show default config in text/yaml format