NovaCompute: Fix loop on start checking for evacuate attribute

The loop only waits for the evacuate attribute to be changed to no, but
we should also check if the evacuate attribute is gone (in case the user
does this manually).

Change-Id: I8d5c5830da07864ee748209be55fda506b1be585
This commit is contained in:
Vincent Untz 2016-02-03 13:57:15 +01:00
parent 8906297008
commit 2fffcca228
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ nova_start() {
else
ocf_log info "Waiting for pending evacuations from ${NOVA_HOST}"
while [ "x$state" != "xno" ]; do
while [ "x$state" != "xno" -a "x$state" != x ]; do
state=$(attrd_updater -p -n evacuate -N ${NOVA_HOST} | sed -e 's/.*value=//' | tr -d '"' )
sleep 5
done