fix restore output
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Moritz 2024-10-16 17:13:19 +02:00
parent 8b66b80332
commit 6ff2312090

View File

@ -126,10 +126,11 @@ def restore(snapshot, target, noninteractive, volumes, container, no_commands):
print(f"Snapshot to restore: \t{snapshot}")
restore_app_versions = app_versions_from_tags(snapshots[0].get('tags'))
print("Apps:")
for app, version in restore_app_versions.items():
print(f"\t{app} \t {version}")
if apps_versions.get(app) != version:
print(f"WARNING!!! The running app is deployed with version {apps_versions.get(app)}")
for app, version in apps_versions.items():
restore_version = restore_app_versions.get(app)
print(f"\t{app} \t {restore_version}")
if version != restore_version:
print(f"WARNING!!! The running app is deployed with version {version}")
print("The following volume paths will be restored:")
for p in backup_paths:
print(f'\t{p}')