Skip to content

Commit ad018ce

Browse files
authored
chore: Fix some grammatical errors in cluster alerts (#6062)
2 parents 34352ac + 1113299 commit ad018ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ocaml/xapi/xapi_cluster_helpers.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ let maybe_generate_alert ~__context ~num_hosts ~hosts_left ~hosts_joined ~quorum
126126
let body =
127127
Printf.sprintf
128128
"Host %s has joined the cluster, there are now %d host(s) in \
129-
cluster and %d hosts are required to form a quorum"
129+
cluster and %d host(s) are required to form a quorum"
130130
host_name num_hosts quorum
131131
in
132132
let name, priority = Api_messages.cluster_host_joining in
@@ -135,7 +135,7 @@ let maybe_generate_alert ~__context ~num_hosts ~hosts_left ~hosts_joined ~quorum
135135
let body =
136136
Printf.sprintf
137137
"Host %s has left the cluster, there are now %d host(s) in \
138-
cluster and %d hosts are required to form a quorum"
138+
cluster and %d host(s) are required to form a quorum"
139139
host_name num_hosts quorum
140140
in
141141
let name, priority = Api_messages.cluster_host_leaving in
@@ -157,8 +157,8 @@ let maybe_generate_alert ~__context ~num_hosts ~hosts_left ~hosts_joined ~quorum
157157
let name, priority = Api_messages.cluster_quorum_approaching_lost in
158158
let body =
159159
Printf.sprintf
160-
"The cluster is losing quorum: current %d hosts, need %d hosts for a \
161-
quorum"
160+
"The cluster is losing quorum: currently %d host(s), need %d host(s) \
161+
for a quorum"
162162
num_hosts quorum
163163
in
164164
Helpers.call_api_functions ~__context (fun rpc session_id ->

0 commit comments

Comments
 (0)