Merge pull request #5932 from rekonder/aj_SCI_8943

Add file extensions between inventories export [SCI-8943]
This commit is contained in:
Alex Kriuchykhin 2023-08-08 13:51:29 +02:00 committed by GitHub
commit 6d4b2c9a9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,8 +76,8 @@ class RepositoriesExportJob < ApplicationJob
end
def append_file_suffix(file_name, suffix)
file_name = to_filesystem_name(file_name)
ext = File.extname(file_name)
file_name = to_filesystem_name(file_name)
File.basename(file_name, ext) + suffix + ext
end