From c66337fd7b395512f9876f80d8af87ae858d2f2e Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Tue, 12 Jun 2018 02:13:31 -0400 Subject: [PATCH] Typo --- fencenode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fencenode.py b/fencenode.py index e0a973fb..d639db86 100644 --- a/fencenode.py +++ b/fencenode.py @@ -27,7 +27,7 @@ import os, sys, libvirt, uuid, kazoo.client, time, subprocess, re, ansiiprint # def fence(node_name, zk): failcount = 0 - while failcount < 3 + while failcount < 3: # Wait 5 seconds time.sleep(5) # Get the state @@ -35,7 +35,7 @@ def fence(node_name, zk): # Is it still 'dead' if node_daemon_state == 'dead': 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 else: ansiiprint.echo('Node "{}" passed a saving throw; canceling fence'.format(node_name), '', 'o')