Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4c70b80

Browse files
authored
Adding port and database name into params list for add-instance command (#118)
1 parent356cd52 commit4c70b80

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-
defadd_instance(self,instance,node,old_binary=False,options=None,expect_error=False):
152+
defadd_instance(self,instance,node,old_binary=False,options=None,expect_error=False,datname=False):
153153
ifoptionsisNone:
154154
options= []
155+
156+
ifnotdatname:
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)

[8]ページ先頭

©2009-2025 Movatter.jp