Skip to content

Commit 4c70b80

Browse files
authored
Adding port and database name into params list for add-instance command (#118)
1 parent 356cd52 commit 4c70b80

File tree

1 file changed

+8
-2
lines changed
  • testgres/plugins/pg_probackup2/pg_probackup2

1 file changed

+8
-2
lines changed

testgres/plugins/pg_probackup2/pg_probackup2/app.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,19 @@ def init(self, options=None, old_binary=False, skip_log_directory=False, expect_
149149
use_backup_dir=use_backup_dir
150150
)
151151

152-
def add_instance(self, instance, node, old_binary=False, options=None, expect_error=False):
152+
def add_instance(self, instance, node, old_binary=False, options=None, expect_error=False, datname=False):
153153
if options is None:
154154
options = []
155+
156+
if not datname:
157+
datname = 'postgres'
158+
155159
cmd = [
156160
'add-instance',
157161
'--instance={0}'.format(instance),
158-
'-D', node.data_dir
162+
'-D', node.data_dir,
163+
'--pgport', '%i' % node.port,
164+
'--pgdatabase', datname
159165
]
160166

161167
# don`t forget to kill old_binary after remote ssh release

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy