Permalink
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...
1 parent 59ac381 commit 9f6e03bd0df9bbc893df3d1a4adf12c56a718e38 David Scott committed Jan 15, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/test-ha-sr2
View
@@ -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

0 comments on commit 9f6e03b

Please sign in to comment.