Skip to content

Commit

Permalink
Cloud download tool: don't create cred. files if manager has provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
VJalili committed Oct 11, 2018
1 parent e31c776 commit d9baf39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/cloud/download.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
</requirements>
<command><![CDATA[
#set $authz_record=$__app__.authnz_manager.try_get_authz_config($__app__.obj.model.context.current, $__user_id__, $authz_id)
#set $credentials_file = $__app__.authnz_manager.get_cloud_access_credentials_in_file($__app__.config.new_file_path, $authz_record, $__app__.obj.model.context.current, $__user_id__)
#if $credentials_file == None
#set $credentials_file = $__app__.authnz_manager.get_cloud_access_credentials_in_file($__app__.config.new_file_path, $authz_record, $__app__.obj.model.context.current, $__user_id__)
#end if
python $__tool_directory__/download.py
--provider=$authz_record.provider
--filename=$filename
Expand All @@ -31,6 +33,7 @@
<param name="bucket" type="text" label="Bucket" />
<param name="object_label" type="text" hidden="true" label="Object Label" />
<param name="overwrite_existing" type="boolean" label="overwrite_existing" />
<param name="credentials_file" type="hidden" label="Credentials File" />
</inputs>
<outputs>
<data name="output" type="data" label="Output log" hidden="false"/>
Expand Down

0 comments on commit d9baf39

Please sign in to comment.