Merge pull request #89 from zalando/bugfix/cleanup

Remove the useless code line and fix a typo in the error message. Per suggestion by @antban
This commit is contained in:
Oleksii Kliukin
2015-11-10 18:18:46 +01:00
+1 -2
View File
@@ -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