Typo
This commit is contained in:
parent
d0a76b2ecb
commit
c66337fd7b
|
@ -27,7 +27,7 @@ import os, sys, libvirt, uuid, kazoo.client, time, subprocess, re, ansiiprint
|
||||||
#
|
#
|
||||||
def fence(node_name, zk):
|
def fence(node_name, zk):
|
||||||
failcount = 0
|
failcount = 0
|
||||||
while failcount < 3
|
while failcount < 3:
|
||||||
# Wait 5 seconds
|
# Wait 5 seconds
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
# Get the state
|
# Get the state
|
||||||
|
@ -35,7 +35,7 @@ def fence(node_name, zk):
|
||||||
# Is it still 'dead'
|
# Is it still 'dead'
|
||||||
if node_daemon_state == 'dead':
|
if node_daemon_state == 'dead':
|
||||||
failcount += 1
|
failcount += 1
|
||||||
ansiiprint.echo('Node "{}" failed {} saving throw'.format(node_name, failcount), '', 'w')
|
ansiiprint.echo('Node "{}" failed {} saving throws'.format(node_name, failcount), '', 'w')
|
||||||
# It changed back to something else so it must be alive
|
# It changed back to something else so it must be alive
|
||||||
else:
|
else:
|
||||||
ansiiprint.echo('Node "{}" passed a saving throw; canceling fence'.format(node_name), '', 'o')
|
ansiiprint.echo('Node "{}" passed a saving throw; canceling fence'.format(node_name), '', 'o')
|
||||||
|
|
Loading…
Reference in New Issue