File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ def test_pgpassword(self):
172172
173173 def run_pb_with_auth (self , password = None , kill = False ):
174174 try :
175- with spawn (" " .join (self .pb .probackup_path + self .cmd ), timeout = 10 ) as probackup :
175+ with spawn (" " .join ([ self .pb .probackup_path ] + self .cmd ), timeout = 10 ) as probackup :
176176 result = probackup .expect ("Password for user .*:" , 5 )
177177 if kill :
178178 probackup .kill (signal .SIGINT )
@@ -200,6 +200,6 @@ def modify_pg_hba(node):
200200 fio .write ('host\t all\t postgres\t 127.0.0.1/0\t trust\n ' + data )
201201
202202def create_pgpass (path , line ):
203- with open (path , 'w' ) as passfile :
203+ with open (path , 'w' , mode = '0660' ) as passfile :
204204 # host:port:db:username:password
205205 passfile .write (line )
You can’t perform that action at this time.
0 commit comments