Browse Source

Merge "NovaCompute: Fix loop on start checking for evacuate attribute"

Jenkins 3 years ago
parent
commit
312fd78942
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      ocf/NovaCompute

+ 1
- 1
ocf/NovaCompute View File

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

Loading…
Cancel
Save