Skip to content

Commit

Permalink
Add resource_id to required attributes (#891)
Browse files Browse the repository at this point in the history
* debug statement and add task_id to proceprocess call

* Add more debug lines

* remove debugging and add resource_id to required attributes
  • Loading branch information
aarontp authored Aug 25, 2021
1 parent a9243d2 commit c5ee8a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions turbinia/evidence.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def preprocess(self, tmp_dir=None, required_states=None, task_id=None):
raise TurbiniaException(
'Evidence of type {0:s} needs parent_evidence to be set'.format(
self.type))
self.parent_evidence.preprocess(tmp_dir, required_states)
self.parent_evidence.preprocess(tmp_dir, required_states, task_id)
try:
log.debug('Starting pre-processor for evidence {0:s}'.format(self.name))
if self.resource_tracked:
Expand Down Expand Up @@ -652,7 +652,7 @@ class GoogleCloudDisk(RawDisk):
disk_name: The cloud disk name.
"""

REQUIRED_ATTRIBUTES = ['disk_name', 'project', 'zone']
REQUIRED_ATTRIBUTES = ['disk_name', 'project', 'resource_id', 'zone']
POSSIBLE_STATES = [EvidenceState.ATTACHED, EvidenceState.MOUNTED]

def __init__(
Expand Down

0 comments on commit c5ee8a1

Please sign in to comment.