Merge "Fix ConfigParser interpolation error on software.conf"

This commit is contained in:
Zuul
2025-08-05 20:16:38 +00:00
committed by Gerrit Code Review

View File

@@ -2813,7 +2813,7 @@ class PatchController(PatchService):
# parse local config file to pass parameters to precheck script
try:
cp = configparser.ConfigParser()
cp = configparser.ConfigParser(interpolation=None)
cp.read(constants.SOFTWARE_CONFIG_FILE_LOCAL)
ks_section = dict(cp["keystone_authtoken"]) if cp.has_section("keystone_authtoken") else {}
auth_url = ks_section.get("auth_url")