No need to evaluate variables anymore in runtime

This commit is contained in:
Orsiris de Jong 2023-12-11 20:45:48 +01:00
parent 49fbdceae5
commit fe81eaf471

View file

@ -40,18 +40,8 @@ def run_upgrade(config_dict):
logger.error("Missing auto upgrade info: %s, cannot launch auto upgrade", exc) logger.error("Missing auto upgrade info: %s, cannot launch auto upgrade", exc)
return False return False
try: auto_upgrade_host_identity = config_dict.g("global_options.auto_upgrade_host_identity")
auto_upgrade_host_identity = configuration.evaluate_variables( group = config_dict.g("global_options.auto_upgrade_group")
config_dict, config_dict["options"]["auto_upgrade_host_identity"]
)
except KeyError:
auto_upgrade_host_identity = None
try:
group = configuration.evaluate_variables(
config_dict, config_dict["options"]["auto_upgrade_group"]
)
except KeyError:
group = None
result = auto_upgrader( result = auto_upgrader(
upgrade_url=auto_upgrade_upgrade_url, upgrade_url=auto_upgrade_upgrade_url,