Skip to content

Commit

Permalink
Define two variables to store the cloud download tool name and version.
Browse files Browse the repository at this point in the history
  • Loading branch information
VJalili committed Aug 1, 2018
1 parent 1d1b729 commit 5567d51
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/galaxy/managers/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@

SUPPORTED_PROVIDERS = "{aws, azure, openstack}"

DOWNLOAD_TOOL = "download_to_cloud"
DOWNLOAD_TOOL_VERSION = "0.1.0"

# TODO: this configuration should be set in a config file.
SINGED_URL_TTL = 3600

Expand Down Expand Up @@ -286,7 +289,7 @@ def download(self, trans, history_id, provider, bucket, credentials, dataset_ids
"overwrite_existing": overwrite_existing
}
incoming = (util.Params(args, sanitize=False)).__dict__
d2c = trans.app.toolbox.get_tool('download_to_cloud', "0.1.0")
d2c = trans.app.toolbox.get_tool(DOWNLOAD_TOOL, DOWNLOAD_TOOL_VERSION)
job = d2c.execute(trans, incoming, history=history)
downloaded.append(object_label)
return downloaded

0 comments on commit 5567d51

Please sign in to comment.