From c517847c54da5d643aa55841ddec55fe2785ddb7 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Tue, 17 Jul 2018 01:51:35 -0400 Subject: [PATCH] Add forgotten time flag to sleep --- pvc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvc.py b/pvc.py index 18acf134..34387d76 100755 --- a/pvc.py +++ b/pvc.py @@ -410,7 +410,7 @@ def flush_host(node, wait): if wait == True: while True: - sleep(1) + time.sleep(1) node_state = zk_conn.get('/nodes/{}/state'.format(node_name))[0].decode('ascii') if node_state == "flushed": break