From: Mark Wong Date: Tue, 18 Jul 2017 19:44:14 +0000 (-0700) Subject: Fix check for csv flag X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=984e2c99d25d0d56e443867e9707d393adacf14f;p=pgperffarm.git Fix check for csv flag --- diff --git a/client/benchmarks/runner.py b/client/benchmarks/runner.py index 6651bf9..b6f7bd5 100644 --- a/client/benchmarks/runner.py +++ b/client/benchmarks/runner.py @@ -84,7 +84,7 @@ class BenchmarkRunner(object): # if requested output to CSV, create a queue and collector process csv_queue = None csv_collector = None - if config['benchmark']['csv']: + if 'csv' in config['config'] and config['config']['csv']: csv_queue = Queue() csv_collector = Process(target=csv_collect_results, args=(config_name, csv_queue))