Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #310 from lundjordan/archiver
Browse files Browse the repository at this point in the history
fixes typo where task id was referenced before use
  • Loading branch information
lundjordan committed Jul 28, 2015
2 parents 66bb96c + 6998ce4 commit 36818cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relengapi/blueprints/archiver/__init__.py
Expand Up @@ -196,7 +196,7 @@ def get_archive(src_url, key, preferred_region):
session.commit()
else:
return {}, 500
return {}, 202, {'Location': url_for('archiver.task_status', task_id=task.id)}
return {}, 202, {'Location': url_for('archiver.task_status', task_id=task_id)}

log.info("generating GET URL to {}, expires in {}s".format(key, GET_EXPIRES_IN))
# return 302 pointing to s3 url with archive
Expand Down

0 comments on commit 36818cd

Please sign in to comment.