Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix an HA test script: this failed when there was only a single host …

…in the pool.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
  • Loading branch information...
commit 9f6e03bd0df9bbc893df3d1a4adf12c56a718e38 1 parent 59ac381
@djs55 djs55 authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  scripts/test-ha-sr2
View
3  scripts/test-ha-sr2
@@ -11,7 +11,8 @@ wait_for_sr() {
local rule=$1
for((retry=1;retry<120;retry++)); do
finished=1
- IFS=","; for x in $(xe host-list params=ha-statefiles --minimal); do
+ IFS=","; for host in $(xe host-list params=uuid --minimal); do
+ x=$(xe host-param-get uuid=${host} param-name=ha-statefiles)
if [ ${rule} -eq 2 ]; then
if [ -n "${x}" ]; then
# Someone has statefile access -> not SR 2
Please sign in to comment.
Something went wrong with that request. Please try again.