We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6a8ebd7 + 6f1709b commit f47b141Copy full SHA for f47b141
ocaml/xapi/cli_operations.ml
@@ -704,6 +704,8 @@ let make_param_funs getall getallrecs getbyuuid record class_name def_filters de
704
match field_lookup record param_name with
705
| { get_set = Some g; remove_from_set = Some f } -> if List.mem param_key (g ()) then f param_key else failwith "Key is not in the set"
706
| { get_map = Some g; remove_from_map = Some f } -> if List.mem_assoc param_key (g ()) then f param_key else failwith "Key is not in map"
707
+ | { get_set = Some _; remove_from_set = None }
708
+ | { get_map = Some _; remove_from_map = None } -> failwith "Cannot remove parameters from read-only map"
709
| _ -> failwith "Can only remove from parameters of type Set or Map"
710
in
711
0 commit comments