Skip to content

Commit

Permalink
fix(bam): the soft state should be updated too. (#88)
Browse files Browse the repository at this point in the history
REFS: MON-11417
  • Loading branch information
bouda1 authored and rem31 committed Oct 27, 2021
1 parent 1dac140 commit b7a8dba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion centreon-broker/bam/src/ba.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ ba::ba(uint32_t id,
_host_id(host_id),
_service_id(service_id),
_generate_virtual_status(generate_virtual_status),
_computed_soft_state(ba::state::state_ok),
_computed_soft_state(source == configuration::ba::state_source_best ?
ba::state::state_critical : ba::state::state_ok),
_computed_hard_state(source == configuration::ba::state_source_best ?
ba::state::state_critical : ba::state::state_ok),
_num_soft_critical_childs{0.f},
Expand Down

0 comments on commit b7a8dba

Please sign in to comment.