fix line too long warning.

This commit is contained in:
Oleksii Kliukin
2015-08-03 11:48:02 +02:00
parent 7f2dcc0a95
commit 2089a123c2
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -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
View File
@@ -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