Skip to content

Commit

Permalink
Cloud download skips deleted, purged, or non-OK datasets.
Browse files Browse the repository at this point in the history
  • Loading branch information
VJalili committed Aug 1, 2018
1 parent 2419c71 commit 880d0bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/galaxy/managers/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ def download(self, trans, history_id, provider, bucket, credentials, dataset_ids
history = self.get_accessible(history_id, trans.user)
downloaded = []
for hda in history.datasets:
if hda.deleted or hda.purged or hda.state != "ok":
continue
if dataset_ids is None or hda.dataset.id in dataset_ids:
object_label = hda.name
args = {
Expand Down

0 comments on commit 880d0bc

Please sign in to comment.