Skip to content

Commit

Permalink
fix 'evacute' typo
Browse files Browse the repository at this point in the history
This requires the corresponding fix in fence_compute in the fence-agents
repository.
  • Loading branch information
Adam Spiers committed Oct 14, 2015
1 parent 5df36db commit c46d87b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pcmk/NovaCompute
Expand Up @@ -159,7 +159,7 @@ nova_start() {
return $OCF_SUCCESS
fi

state=$(attrd_updater -p -n evacute -N ${NOVA_HOST} | sed -e 's/.*value=//' | tr -d '"' )
state=$(attrd_updater -p -n evacuate -N ${NOVA_HOST} | sed -e 's/.*value=//' | tr -d '"' )
if [ -z "$state" ]; then
: never been fenced

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

Expand Down
4 changes: 2 additions & 2 deletions pcmk/NovaEvacuate
Expand Up @@ -141,7 +141,7 @@ evacuate_start() {
}

update_evacuation() {
attrd_updater -p -n evacute -Q -N ${1} -v ${2}
attrd_updater -p -n evacuate -Q -N ${1} -v ${2}
arc=$?
if [ ${arc} != 0 ]; then
ocf_log warn "Can not set evacuation state of ${1} to ${2}: ${arc}"
Expand Down Expand Up @@ -220,7 +220,7 @@ evacuate_monitor() {
fi

handle_evacuations $(
attrd_updater -n evacute -A |
attrd_updater -n evacuate -A |
sed 's/ value=""/ value="no"/' |
tr '="' ' ' |
awk '{print $4" "$6}'
Expand Down

0 comments on commit c46d87b

Please sign in to comment.