Blame SOURCES/bz1293355-novacompute-novaevacuate-fix-evacute-typo.patch

4efcdb
diff -uNr a/heartbeat/NovaCompute b/heartbeat/NovaCompute
4efcdb
--- a/heartbeat/NovaCompute	2015-11-17 10:13:13.403119585 +0100
4efcdb
+++ b/heartbeat/NovaCompute	2015-11-17 10:20:49.632620122 +0100
4efcdb
@@ -159,7 +159,7 @@
4efcdb
 	return $OCF_SUCCESS
4efcdb
     fi
4efcdb
 
4efcdb
-    state=$(attrd_updater -p -n evacute -N ${NOVA_HOST} | sed -e 's/.*value=//' | tr -d '"' )
4efcdb
+    state=$(attrd_updater -p -n evacuate -N ${NOVA_HOST} | sed -e 's/.*value=//' | tr -d '"' )
4efcdb
     if [ "x$state" = x ]; then
4efcdb
 	: never been fenced
4efcdb
 
4efcdb
@@ -171,7 +171,7 @@
4efcdb
     else
4efcdb
 	ocf_log info "Waiting for pending evacuations from ${NOVA_HOST}"
4efcdb
 	while [ "x$state" != "xno" ]; do
4efcdb
-	    state=$(attrd_updater -p -n evacute -N ${NOVA_HOST} | sed -e 's/.*value=//' | tr -d '"' )
4efcdb
+	    state=$(attrd_updater -p -n evacuate -N ${NOVA_HOST} | sed -e 's/.*value=//' | tr -d '"' )
4efcdb
 	    sleep 5
4efcdb
 	done
4efcdb
 
4efcdb
diff -uNr a/heartbeat/NovaEvacuate b/heartbeat/NovaEvacuate
4efcdb
--- a/heartbeat/NovaEvacuate	2015-11-17 10:13:13.403119585 +0100
4efcdb
+++ b/heartbeat/NovaEvacuate	2015-11-17 10:38:14.424846295 +0100
4efcdb
@@ -141,7 +141,7 @@
4efcdb
 }
4efcdb
 
4efcdb
 update_evacuation() {
4efcdb
-    attrd_updater -p -n evacute -Q -N ${1} -v ${2}
4efcdb
+    attrd_updater -p -n evacuate -Q -N ${1} -v ${2}
4efcdb
     arc=$?
4efcdb
     if [ ${arc} != 0 ]; then
4efcdb
 	ocf_log warn "Can not set evacuation state of ${1} to ${2}: ${arc}"
4efcdb
@@ -219,7 +219,12 @@
4efcdb
 	return $OCF_NOT_RUNNING
4efcdb
     fi
4efcdb
 
4efcdb
-    handle_evacuations $(attrd_updater -n evacute -A | tr '="' '  ' | awk '{print $4" "$6}')
4efcdb
+    handle_evacuations $(
4efcdb
+        attrd_updater -n evacuate -A |
4efcdb
+            sed 's/ value=""/ value="no"/' |
4efcdb
+            tr '="' '  ' |
4efcdb
+            awk '{print $4" "$6}'
4efcdb
+    )
4efcdb
     return $OCF_SUCCESS
4efcdb
 }
4efcdb