diff options
-rw-r--r-- | functest/opnfv_tests/openstack/tempest/tempest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py index ce1fcedd2..3258cc5c4 100644 --- a/functest/opnfv_tests/openstack/tempest/tempest.py +++ b/functest/opnfv_tests/openstack/tempest/tempest.py @@ -493,7 +493,7 @@ class TempestCommon(singlevm.VmReady2): rconfig.add_section("auth") if env.get("NEW_USER_ROLE").lower() != "member": tempest_roles = [] - if "tempest_roles" in rconfig["auth"]: + if rconfig.has_option("auth", "tempest_roles"): tempest_roles = functest_utils.convert_ini_to_list( rconfig.get("auth", "tempest_roles")) rconfig.set( |