mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Stylistic issues: clearly mark unused variables.
This commit is contained in:
@@ -37,7 +37,7 @@ class BasicReplicationSteps(object):
|
||||
@staticmethod
|
||||
def table_is_present_on(step, table_name, pg_name, max_replication_delay):
|
||||
'''Table (\w+) is present on (\w+) after (\d+) seconds'''
|
||||
for i in range(int(max_replication_delay)):
|
||||
for _ in range(int(max_replication_delay)):
|
||||
if world.pctl.query(pg_name, "SELECT 1 FROM {0}".format(table_name), fail_ok=True) is not None:
|
||||
break
|
||||
sleep(1)
|
||||
|
||||
Reference in New Issue
Block a user