Skip to content

Commit

Permalink
fix(Host.set_numa_affinity_policy): be consistent about accepting mix…
Browse files Browse the repository at this point in the history
…ed case

Other enums here accept mixed case, not just lower case.

Fixes: 638f58e ("CP-38020: add HOST.set_numa_affinity_policy")

Signed-off-by: Edwin Török <[email protected]>
  • Loading branch information
edwintorok committed Feb 16, 2024
1 parent ed13f12 commit 5bcbd3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ocaml/xapi-cli-server/record_util.ml
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,8 @@ let host_numa_affinity_policy_to_string = function
| `default_policy ->
"default_policy"

let host_numa_affinity_policy_of_string = function
let host_numa_affinity_policy_of_string a =
match String.lowercase_ascii a with
| "any" ->
`any
| "best_effort" ->
Expand Down

0 comments on commit 5bcbd3b

Please sign in to comment.