Skip to content

Commit

Permalink
chore: Fix some grammatical errors in cluster alerts (#6062)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent-lau authored Oct 17, 2024
2 parents 34352ac + 1113299 commit ad018ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ocaml/xapi/xapi_cluster_helpers.ml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ let maybe_generate_alert ~__context ~num_hosts ~hosts_left ~hosts_joined ~quorum
let body =
Printf.sprintf
"Host %s has joined the cluster, there are now %d host(s) in \
cluster and %d hosts are required to form a quorum"
cluster and %d host(s) are required to form a quorum"
host_name num_hosts quorum
in
let name, priority = Api_messages.cluster_host_joining in
Expand All @@ -135,7 +135,7 @@ let maybe_generate_alert ~__context ~num_hosts ~hosts_left ~hosts_joined ~quorum
let body =
Printf.sprintf
"Host %s has left the cluster, there are now %d host(s) in \
cluster and %d hosts are required to form a quorum"
cluster and %d host(s) are required to form a quorum"
host_name num_hosts quorum
in
let name, priority = Api_messages.cluster_host_leaving in
Expand All @@ -157,8 +157,8 @@ let maybe_generate_alert ~__context ~num_hosts ~hosts_left ~hosts_joined ~quorum
let name, priority = Api_messages.cluster_quorum_approaching_lost in
let body =
Printf.sprintf
"The cluster is losing quorum: current %d hosts, need %d hosts for a \
quorum"
"The cluster is losing quorum: currently %d host(s), need %d host(s) \
for a quorum"
num_hosts quorum
in
Helpers.call_api_functions ~__context (fun rpc session_id ->
Expand Down

0 comments on commit ad018ce

Please sign in to comment.