Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 01e6a7b

Browse files
committed
Merge with master
2 parents 8a38d7c + 7847380 commit 01e6a7b

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
readme = f.read()
2828

2929
setup(
30-
version='1.10.0',
30+
version='1.10.1',
3131
name='testgres',
3232
packages=['testgres', 'testgres.operations', 'testgres.helpers'],
3333
description='Testing utility for PostgreSQL and its extensions',

testgres/operations/os_ops.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111

1212

1313
class ConnectionParams:
14-
def __init__(self, host='127.0.0.1', ssh_key=None, username=None):
14+
def __init__(self, host='127.0.0.1', port=None, ssh_key=None, username=None):
1515
self.host = host
16+
self.port = port
1617
self.ssh_key = ssh_key
1718
self.username = username
1819

testgres/operations/remote_ops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def __init__(self, conn_params: ConnectionParams):
4545
super().__init__(conn_params.username)
4646
self.conn_params = conn_params
4747
self.host = conn_params.host
48-
self.ssh_key = conn_params.ssh_key
4948
self.port = conn_params.port
49+
self.ssh_key = conn_params.ssh_key
5050
self.ssh_args = []
5151
if self.ssh_key:
5252
self.ssh_args += ["-i", self.ssh_key]
@@ -286,7 +286,7 @@ def write(self, filename, data, truncate=False, binary=False, read_and_write=Fal
286286
mode = "r+b" if binary else "r+"
287287

288288
with tempfile.NamedTemporaryFile(mode=mode, delete=False) as tmp_file:
289-
# Because in scp we set up port using -P option
289+
# For scp the port is specified by a "-P" option
290290
scp_args = ['-P' if x == '-p' else x for x in self.ssh_args]
291291

292292
if not truncate:

testgres/plugins/pg_probackup2/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from distutils.core import setup
55

66
setup(
7-
version='0.0.2',
7+
version='0.0.3',
88
name='testgres_pg_probackup2',
99
packages=['pg_probackup2', 'pg_probackup2.storage'],
1010
description='Plugin for testgres that manages pg_probackup2',

0 commit comments

Comments
 (0)