Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b07380 + 0a0b0cf commit a1a475aCopy full SHA for a1a475a
testgres/plugins/pg_probackup2/pg_probackup2/app.py
@@ -388,6 +388,7 @@ def catchup_node(
388
backup_mode, source_pgdata, destination_node,
389
options=None,
390
remote_host='localhost',
391
+ remote_port=None,
392
expect_error=False,
393
gdb=False
394
):
@@ -401,7 +402,9 @@ def catchup_node(
401
402
'--destination-pgdata={0}'.format(destination_node.data_dir)
403
]
404
if self.remote:
- cmd_list += ['--remote-proto=ssh', '--remote-host=%s' % remote_host]
405
+ cmd_list += [f'--remote-proto=ssh', '--remote-host={remote_host}']
406
+ if remote_port:
407
+ cmd_list.append(f'--remote-port={remote_port}')
408
if self.verbose:
409
cmd_list += [
410
'--log-level-file=VERBOSE',
0 commit comments