Commit e479ab44 authored by Stephane Glondu's avatar Stephane Glondu

Do not remove public_creds.txt in validate_election

parent 08d891b6
Pipeline #85221 passed with stages
in 21 minutes and 10 seconds
......@@ -182,9 +182,7 @@ let validate_election uuid se =
let%lwt () =
let fname = !Web_config.spool_dir / uuid_s / "public_creds.txt" in
match%lwt read_file fname with
| Some xs ->
let%lwt () = Web_persist.init_credential_mapping uuid xs in
Lwt_unix.unlink fname
| Some xs -> Web_persist.init_credential_mapping uuid xs
| None -> return_unit
in
(* create file with private keys, if any *)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment