mirror of
https://github.com/netinvent/npbackup.git
synced 2024-11-11 09:48:52 +08:00
No need to evaluate variables anymore in runtime
This commit is contained in:
parent
49fbdceae5
commit
fe81eaf471
1 changed files with 2 additions and 12 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue