Skip to content

Commit

Permalink
Stronger assertion about link_data_only option in upload.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Dec 20, 2017
1 parent 6dfcf65 commit 24d15bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/data_source/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ def add_file(dataset, registry, json_file, output_path):
line_count = None
converted_path = None
stdout = None
link_data_only = dataset.get('link_data_only', 'copy_files') != 'copy_files'
link_data_only_str = dataset.get('link_data_only', 'copy_files')
if link_data_only_str not in ['link_data_only', 'copy_files']:
raise UploadProblemException("Invalid setting for option link_data_only - upload request misconfigured.")
link_data_only = link_data_only_str == 'link_data_only'

# run_as_real_user is estimated from galaxy config (external chmod indicated of inputs executed)
# If this is True we always purge supplied upload inputs so they are cleaned up and we reuse their
Expand Down

0 comments on commit 24d15bb

Please sign in to comment.