Another silly error - read from string rather that file.

This commit is contained in:
Alex Kavanagh
2023-02-21 17:16:40 +00:00
parent 544d0d5a7c
commit 3bb64912e7

View File

@@ -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.