From: Kerim Gokarslan Date: Mon, 9 Oct 2017 23:19:40 +0000 (-0700) Subject: NFVBENCH-36 Send results to fluentd on show-summary option X-Git-Tag: 1.1.0~11 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F01%2F44601%2F2;p=nfvbench.git NFVBENCH-36 Send results to fluentd on show-summary option Change-Id: I7c3a37456e627267dda26fc4d892aa32b10fd7aa Signed-off-by: Kerim Gokarslan --- 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