mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-26 23:50:23 +00:00
Fix imports
This commit is contained in:
+2
-2
@@ -2,6 +2,7 @@
|
||||
|
||||
import logging
|
||||
import os
|
||||
import requests
|
||||
import signal
|
||||
import sys
|
||||
import threading
|
||||
@@ -11,7 +12,7 @@ import yaml
|
||||
from helpers.etcd import Etcd
|
||||
from helpers.postgresql import Postgresql
|
||||
from helpers.ha import Ha
|
||||
from helpers.statuspage import StatusPage, getHTTPServer
|
||||
from helpers.statuspage import getHTTPServer
|
||||
|
||||
|
||||
def sigterm_handler(signo, stack_frame):
|
||||
@@ -39,7 +40,6 @@ class Governor:
|
||||
self.postgresql = Postgresql(config['postgresql'], aws_host_address)
|
||||
self.ha = Ha(self.postgresql, self.etcd)
|
||||
|
||||
|
||||
def initialize(self):
|
||||
# wait for etcd to be available
|
||||
while not self.etcd.touch_member(self.postgresql.name, self.postgresql.connection_string):
|
||||
|
||||
Reference in New Issue
Block a user