Skip to content

Commit dd449e0

Browse files
committed
Fix logging of CPU pool-level changes
This check should be done based on the `features_hvm_host` field now, as the `features_hvm` field is no longer part of the pool-level cpu_info. Signed-off-by: Rob Hoes <[email protected]>
1 parent 78588d3 commit dd449e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ocaml/xapi/create_misc.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -737,15 +737,15 @@ let create_pool_cpuinfo ~__context =
737737
Db.Pool.set_cpu_info ~__context ~self:pool ~value:pool_cpuinfo ;
738738

739739
let before =
740-
getf ~default:(CPU_policy.of_string `host "") features_hvm old_cpuinfo
740+
getf ~default:(CPU_policy.of_string `host "") features_hvm_host old_cpuinfo
741741
in
742742
let after =
743-
getf ~default:(CPU_policy.of_string `host "") features_hvm pool_cpuinfo
743+
getf ~default:(CPU_policy.of_string `host "") features_hvm_host pool_cpuinfo
744744
in
745745
if before <> after && before <> CPU_policy.of_string `host "" then
746746
info
747-
"The pool-level CPU features have changed. Old features_hvm=%s. New \
748-
features_hvm=%s."
747+
"The pool-level CPU features have changed. Old features_hvm_host=%s. New \
748+
features_hvm_host=%s."
749749
(CPU_policy.to_string before)
750750
(CPU_policy.to_string after)
751751

0 commit comments

Comments
 (0)