diff options
author | Rex Lee <limingjiang@huawei.com> | 2017-07-25 02:43:26 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-07-25 02:43:26 +0000 |
commit | d29df23ae5057fe0ccded6f8d8f3e36a084a78b3 (patch) | |
tree | e3cf9338e708edbbcb66bf776ee529615989e982 /yardstick/benchmark/core/task.py | |
parent | a513db6bb8f5887f975a1b0152818b682fb67095 (diff) | |
parent | f49a1f22f8ba1bfa7a9942f7a9f084d2c9c81378 (diff) |
Merge "yardstick env influxdb/grafana cmd support centos"
Diffstat (limited to 'yardstick/benchmark/core/task.py')
-rw-r--r-- | yardstick/benchmark/core/task.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/yardstick/benchmark/core/task.py b/yardstick/benchmark/core/task.py index b53d6446e..ede14b1c0 100644 --- a/yardstick/benchmark/core/task.py +++ b/yardstick/benchmark/core/task.py @@ -58,7 +58,12 @@ class Task(object): # pragma: no cover check_environment() - output_config = utils.parse_ini_file(config_file) + try: + output_config = utils.parse_ini_file(config_file) + except Exception: + # all error will be ignore, the default value is {} + output_config = {} + self._init_output_config(output_config) self._set_output_config(output_config, args.output_file) LOG.debug('Output configuration is: %s', output_config) |