From 3bb64912e7e947565c8b8781122be52157e2e0b0 Mon Sep 17 00:00:00 2001 From: Alex Kavanagh Date: Tue, 21 Feb 2023 17:16:40 +0000 Subject: [PATCH] Another silly error - read from string rather that file. --- zaza/openstack/charm_tests/keystone/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zaza/openstack/charm_tests/keystone/tests.py b/zaza/openstack/charm_tests/keystone/tests.py index e7c4faf..b4c4124 100644 --- a/zaza/openstack/charm_tests/keystone/tests.py +++ b/zaza/openstack/charm_tests/keystone/tests.py @@ -201,7 +201,7 @@ class CharmOperationTest(BaseKeystoneTest): def _get_password_from_leader(): conf = zaza.model.file_contents('glance/leader', GLANCE_CONF_FILE) config = configparser.ConfigParser() - config.read(conf) + config.read_string(conf) return config['image_format']['password'].strip() # Only do the test if glance is in the model.