Skip to content

Commit

Permalink
rename recovery file (#342)
Browse files Browse the repository at this point in the history
* rename recovery file

* add recovery file format explanation
  • Loading branch information
Landeers authored Jan 15, 2024
1 parent 81e6296 commit d8f4305
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/resana_secure/routes/recovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ async def export_device(core: LoggedCore) -> tuple[dict[str, Any], int]:
finally:
path.unlink()

file_name = get_recovery_device_file_name(core.device).replace("parsec-", "resana-secure-", 1)
# base file_name format : parsec-recovery-<id_org>-<user-label="-unknown-">.psrk
# target file_name : resana-secure-recovery-<id_org>.psrk
file_name = (
get_recovery_device_file_name(core.device)
.replace("parsec-", "resana-secure-", 1)
.replace("--unknown-", "")
)

return (
{
Expand Down

0 comments on commit d8f4305

Please sign in to comment.