Skip to content

Commit

Permalink
update fix exception
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioLangaritaBenitez committed Feb 5, 2025
1 parent 63edcf1 commit 7df7911
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions faassupervisor/storage/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,12 @@ def upload_output(self, output_dir_path, parsed_event=None):
provider_type = StrUtils.get_storage_type(output['storage_provider'])
provider_id = StrUtils.get_storage_id(output['storage_provider'])
#Change the output to a private bucket
if provider_type == 'MINIO' and ConfigUtils.read_cfg_var('isolation_level') == 'USER' and \
parsed_event != None and parsed_event.bucket_name in ConfigUtils.read_cfg_var('bucket_list'):
output['path']=parsed_event.bucket_name+"/out"
try:
if provider_type == 'MINIO' and ConfigUtils.read_cfg_var('isolation_level') == 'USER' and \
parsed_event != None and parsed_event.bucket_name in ConfigUtils.read_cfg_var('bucket_list'):
output['path']=parsed_event.bucket_name+"/out"
except:
pass
for file_path in output_files:
# Make sure the file name does not contain new lines or starting slashes
file_name = file_path.replace(f'{output_dir_path}/', '').strip().lstrip('/')
Expand Down

0 comments on commit 7df7911

Please sign in to comment.