Skip to content

Commit 9366283

Browse files
committed
Refinement of the run function in app.py
1 parent 569923a commit 9366283

File tree

1 file changed

+3
-0
lines changed
  • testgres/plugins/pg_probackup2/pg_probackup2

1 file changed

+3
-0
lines changed

testgres/plugins/pg_probackup2/pg_probackup2/app.py

+3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ def run(self, command, gdb=False, old_binary=False, return_id=True, env=None,
7373
command = [command[0], *use_backup_dir.pb_args, *command[1:]]
7474
elif use_backup_dir:
7575
command = [command[0], *self.backup_dir.pb_args, *command[1:]]
76+
else:
77+
use_backup_dir = self.backup_dir.pb_args[2:]
78+
command = [command[0], *use_backup_dir, *command[1:]]
7679

7780
if not self.probackup_old_path and old_binary:
7881
logging.error('PGPROBACKUPBIN_OLD is not set')

0 commit comments

Comments
 (0)