mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-07 13:35:16 +08:00
upgrade_server: Fix handling of optional values
This commit is contained in:
parent
b59511b727
commit
d0b8e708cc
1 changed files with 3 additions and 3 deletions
|
@ -102,9 +102,9 @@ def get_file(
|
|||
)
|
||||
|
||||
for posssible_sub_path in [
|
||||
file.auto_upgrade_host_identity.value,
|
||||
file.installed_version.value,
|
||||
file.group.value,
|
||||
file.auto_upgrade_host_identity,
|
||||
file.installed_version,
|
||||
file.group,
|
||||
]:
|
||||
if posssible_sub_path:
|
||||
possibile_sub_path = os.path.join(base_path, posssible_sub_path)
|
||||
|
|
Loading…
Add table
Reference in a new issue