diff --git a/patroni/__init__.py b/patroni/__init__.py index 150334ba..78811752 100644 --- a/patroni/__init__.py +++ b/patroni/__init__.py @@ -20,7 +20,6 @@ class Patroni: self.nap_time = config['loop_wait'] self.postgresql = Postgresql(config['postgresql']) self.dcs = self.get_dcs(self.postgresql.name, config) - host, port = config['restapi']['listen'].split(':') self.api = RestApiServer(self, config['restapi']) self.ha = Ha(self) self.next_run = time.time() @@ -31,7 +30,7 @@ class Patroni: return Etcd(name, config['etcd']) if 'zookeeper' in config: return ZooKeeper(name, config['zookeeper']) - raise Exception('Can not find sutable configuration of distributed configuration store') + raise Exception('Can not find suitable configuration of distributed configuration store') def schedule_next_run(self): self.next_run += self.nap_time