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:
parent
8906297008
commit
2fffcca228
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue