File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -158,9 +158,10 @@ def __init__(self, rucio_object_store):
158158 def get_rucio_client (self ):
159159 if not self .rucio_config_path :
160160 temp_directory = self .extra_dirs ["temp" ]
161- self .rucio_config_path = os .path .join (temp_directory , "rucio.cfg" )
162161 key_for_pass = "password"
163- with open (self .rucio_config_path , "w" ) as f :
162+ os .makedirs (temp_directory , exist_ok = True )
163+ rucio_config_path = os .path .join (temp_directory , "rucio.cfg" )
164+ with open (rucio_config_path , "w" ) as f :
164165 f .write (f"""[client]
165166rucio_host = { self .config ['host' ]}
166167auth_host = { self .config ['auth_host' ]}
@@ -169,6 +170,7 @@ def get_rucio_client(self):
169170username = { self .config ['username' ]}
170171{ key_for_pass } = { self .config [key_for_pass ]}
171172""" )
173+ self .rucio_config_path = rucio_config_path
172174 # We may have crossed a forkpool boundary. No harm setting the env var again.
173175 # Fixes rucio integration tests
174176 os .environ ["RUCIO_CONFIG" ] = self .rucio_config_path
You can’t perform that action at this time.
0 commit comments