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.
1 parent 0edc937 commit fb0ee44Copy full SHA for fb0ee44
testgres/plugins/pg_probackup2/pg_probackup2/storage/fs_backup.py
@@ -42,8 +42,11 @@ class FSTestBackupDir(TestBackupDir):
42
43
""" Backup directory. Usually created by running pg_probackup init -B <path>"""
44
45
- def __init__(self, *, rel_path, backup):
46
- self.path = os.path.join(init_params.tmp_path, rel_path, backup)
+ def __init__(self, *, path, backup):
+ if os.path.isabs(path):
47
+ self.path = os.path.join(path, backup)
48
+ else:
49
+ self.path = os.path.join(init_params.tmp_path, path, backup)
50
self.pb_args = ('-B', self.path)
51
52
def list_instance_backups(self, instance):
0 commit comments