We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f96646 commit 2490595Copy full SHA for 2490595
1 file changed
ocaml/xapi/storage_migrate.ml
@@ -426,10 +426,7 @@ module MigrateLocal = struct
426
(* Destroy the snapshot, if it still exists *)
427
let snap =
428
List.find_opt
429
- (fun x ->
430
- List.mem_assoc "base_mirror" x.sm_config
431
- && List.assoc "base_mirror" x.sm_config = id
432
- )
+ (fun x -> List.assoc_opt "base_mirror" x.sm_config = Some id)
433
vdis
434
in
435
( match snap with
0 commit comments