Skip to content

Commit

Permalink
improvement log ext3 overlay info into task aces#1387
Browse files Browse the repository at this point in the history
  • Loading branch information
MontrealSergiy committed May 14, 2024
1 parent 9858195 commit 26aeab7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BrainPortal/app/models/tool_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -381,16 +381,16 @@ def singularity_overlays_full_paths
cb_error "Can't find DataProvider #{id_or_name} for fetching overlays" if ! dp
dp_ovs = dp.singularity_overlays_full_paths rescue nil
cb_error "DataProvider #{id_or_name} does not have any overlays configured." if dp_ovs.blank?
["Data Provider", "#{id_or_name}", dp_ovs]
["Data Provider", id_or_name, dp_ovs]
when 'file'
cb_error "Provide absolute path for overlay file '#{id_or_name}'." if (Pathname.new id_or_name).relative?
["local file", "#{id_or_name}", ["#{id_or_name}"]] # for local file, it is full file name (no ids)
["local file", id_or_name, [id_or_name]] # for local file, it is full file name (no ids)
when 'userfile'
# db registered file, note admin can access all files
userfile = SingleFile.where(:id => id_or_name).last
cb_error "Userfile with id '#{id_or_name}' for overlay fetching not found." if ! userfile
userfile.sync_to_cache() rescue cb_error "Userfile with id '#{id_or_name}' for fetching overlay failed to synchronize."
["registered file with id", "{id_or_name}", [userfile.cache_full_path()]]
["registered file with id", id_or_name, [userfile.cache_full_path()]]
when 'ext3capture'
nil # handled separately
else
Expand Down

0 comments on commit 26aeab7

Please sign in to comment.