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

Commit

Permalink
add start-vm method
Browse files Browse the repository at this point in the history
  • Loading branch information
Allie Crevier committed Jan 14, 2020
1 parent be86e42 commit 7fd001e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions securedrop_export/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Metadata(object):

METADATA_FILE = "metadata.json"
SUPPORTED_EXPORT_METHODS = [
"start-vm",
"usb-test", # general preflight check
"disk",
"disk-test", # disk preflight test
Expand Down
3 changes: 3 additions & 0 deletions securedrop_export/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ def __main__(submission):
if not submission.archive_metadata.is_valid():
submission.exit_gracefully(ExportStatus.ERROR_ARCHIVE_METADATA.value)

if submission.archive_metadata.export_method == "start-vm":
submission.exit_gracefully('')

if submission.archive_metadata.export_method == "usb-test":
action = USBTestAction(submission)
elif submission.archive_metadata.export_method == "disk":
Expand Down

0 comments on commit 7fd001e

Please sign in to comment.