mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
fix line too long warning.
This commit is contained in:
@@ -152,7 +152,8 @@ class Postgresql:
|
||||
def create_replica(self, master_connection, env):
|
||||
connstring = self.build_connstring(master_connection, master_connection)
|
||||
cmd = self.config['restore']
|
||||
ret = subprocess.call(shlex.split(os.path.abspath(cmd))+[self.scope, "replica", self.data_dir, connstring], env=env)
|
||||
ret = subprocess.call(shlex.split(os.path.abspath(cmd))+[self.scope, "replica",
|
||||
self.data_dir, connstring], env=env)
|
||||
return ret
|
||||
|
||||
def is_leader(self, check_only=False):
|
||||
|
||||
+2
-1
@@ -48,7 +48,8 @@ class Restore:
|
||||
def create_replica_with_pg_basebackup(self):
|
||||
master_connection = self.parse_connstring()
|
||||
ret = subprocess.call(['pg_basebackup', '-R', '-D', self.data_dir, '--host=' + master_connection['host'],
|
||||
'--port=' + str(master_connection['port']), '-U', master_connection['user']], env=self.env)
|
||||
'--port=' + str(master_connection['port']), '-U', master_connection['user']],
|
||||
env=self.env)
|
||||
self.delete_trigger_file()
|
||||
return ret
|
||||
|
||||
|
||||
Reference in New Issue
Block a user