From 13067de652d6ccdcfc85f0f5e65841b644d9a6e9 Mon Sep 17 00:00:00 2001 From: Linda Wang Date: Thu, 10 Aug 2017 12:06:05 +0000 Subject: Fix the logic of adding/updating tempest.conf Change-Id: I850311a9306607106836f24594019e98d2fd9499 Signed-off-by: Linda Wang --- functest/opnfv_tests/openstack/tempest/conf_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functest/opnfv_tests/openstack/tempest') diff --git a/functest/opnfv_tests/openstack/tempest/conf_utils.py b/functest/opnfv_tests/openstack/tempest/conf_utils.py index 2313ec04b..7c88fc5d3 100644 --- a/functest/opnfv_tests/openstack/tempest/conf_utils.py +++ b/functest/opnfv_tests/openstack/tempest/conf_utils.py @@ -336,7 +336,7 @@ def configure_tempest_update_params(tempest_conf_file, 'into tempest.conf file') with open(TEMPEST_CONF_YAML) as f: conf_yaml = yaml.safe_load(f) - if not conf_yaml: + if conf_yaml: sections = config.sections() for section in conf_yaml: if section not in sections: -- cgit 1.2.3-korg