Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions docker/granular/granular.py
Original file line number Diff line number Diff line change
Expand Up @@ -1382,10 +1382,13 @@ def post(self, backup_id):
for prev in (requested or []):
prev_name = prev or ""
restored_as = databases_mapping.get(prev_name) if isinstance(databases_mapping, dict) else None
status = "notStarted" if prev_name else ""
if dry_run:
status = "Successful"
dbs_out.append({
"previousDatabaseName": prev_name,
"databaseName": restored_as or prev_name,
"status": "notStarted" if prev_name else "",
"status": status,
"creationTime": created_iso
})

Expand Down Expand Up @@ -1416,7 +1419,8 @@ def post(self, backup_id):
}

if dry_run:
return enriched, http.client.OK
enriched["status"] = "Successful"
enriched, http.client.OK

status_path = backups.build_restore_status_file_path(backup_id, tracking_id, namespace)

Expand Down