File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
testgres/plugins/pg_probackup2/pg_probackup2/storage Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,9 @@ class FSTestBackupDir(TestBackupDir):
44
44
45
45
def __init__ (self , * , rel_path , backup ):
46
46
backup_prefix = os .environ .get ('PG_PROBACKUP_TEST_BACKUP_DIR_PREFIX' )
47
- if backup_prefix :
48
- if not os .path .isabs (backup_prefix ):
49
- raise Exception (f"PG_PROBACKUP_TEST_BACKUP_DIR_PREFIX must be an absolute path, current value: { backup_prefix } " )
50
- self .path = os .path .join (backup_prefix , rel_path , backup )
51
- else :
52
- self .path = os .path .join (init_params .tmp_path , rel_path , backup )
47
+ if not os .path .isabs (backup_prefix ):
48
+ raise Exception (f"PG_PROBACKUP_TEST_BACKUP_DIR_PREFIX must be an absolute path, current value: { backup_prefix } " )
49
+ self .path = os .path .join (backup_prefix or init_params .tmp_path , rel_path , backup )
53
50
self .pb_args = ('-B' , self .path )
54
51
55
52
def list_instance_backups (self , instance ):
You can’t perform that action at this time.
0 commit comments