Skip to content

Commit f0115ac

Browse files
committed
Make flake8 happy
1 parent ab80a2e commit f0115ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

patroni/ha.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,7 +1626,8 @@ def on_shutdown(checkpoint_location: int, prev_location: int) -> None:
16261626
status['released'] = True
16271627

16281628
if mode == 'multisite':
1629-
on_shutdown = self.patroni.multisite.on_shutdown
1629+
on_shutdown = self.patroni.multisite.on_shutdown # noqa: F811
1630+
16301631
def before_shutdown() -> None:
16311632
if self.state_handler.mpp_handler.is_coordinator():
16321633
self.state_handler.mpp_handler.on_demote()
@@ -1659,7 +1660,7 @@ def before_shutdown() -> None:
16591660
time.sleep(2) # Give a time to somebody to take the leader lock
16601661

16611662
if mode == 'multisite':
1662-
self.patroni.multisite.on_shutdown(checkpoint_lsn, prev_lsn) # pyright: ignore [reportArgumentType] # noqa: F811
1663+
on_shutdown(checkpoint_lsn, prev_lsn) # pyright: ignore [reportArgumentType] # noqa: F811
16631664

16641665
if mode == 'demote-cluster':
16651666
if demote_cluster_with_archive:

0 commit comments

Comments
 (0)