Skip to content

Commit

Permalink
Fix auto-upload from client (#1057)
Browse files Browse the repository at this point in the history
* Fix auto-upload from client

* formatting

* Fix comment
  • Loading branch information
aarontp authored May 4, 2022
1 parent 86158a9 commit 2e87a91
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion turbinia/turbiniactl.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,9 +929,13 @@ def process_evidence(

if evidence_ and not args.force_evidence:
if not config.SHARED_FILESYSTEM and evidence_.copyable:
# This is created so we can auto-upload files when they are copyable.
if os.path.exists(evidence_.local_path):
output_manager = OutputManager()
output_manager.setup(evidence_.type, request_id, remote_only=True)
# Passing in request_id as the uid because we don't have an
# associated Task ID in this case.
output_manager.setup(
evidence_.type, request_id, request_id, remote_only=True)
output_manager.save_evidence(evidence_)
else:
msg = (
Expand Down

0 comments on commit 2e87a91

Please sign in to comment.