File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ class RequestsSummary(BaseModel):
118
118
"""Represents a summary view of multiple Turbinia requests."""
119
119
requests_status : List [RequestStatus ] = []
120
120
121
- def get_requests_summmary (self ):
121
+ def get_requests_summary (self ):
122
122
"""Generates a status summary for each Turbinia request."""
123
123
_state_manager = state_manager .get_state_manager ()
124
124
instance_id = turbinia_config .INSTANCE_ID
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ async def get_requests_summary():
42
42
"""
43
43
requests_summary = request_status .RequestsSummary ()
44
44
try :
45
- if not requests_summary .get_requests_summmary ():
45
+ if not requests_summary .get_requests_summary ():
46
46
return JSONResponse (
47
47
content = {'detail' : 'Request summary is empty' }, status_code = 200 )
48
48
return requests_summary
@@ -118,7 +118,7 @@ async def create_request(req: request.Request):
118
118
119
119
if recipe_data :
120
120
# Use a client-provided recipe. recipe_data MUST be a Base64 encoded
121
- # YAML representaiton of a Turbinia recipe. The recipe will be validated.
121
+ # YAML representation of a Turbinia recipe. The recipe will be validated.
122
122
# We assume that if the client provided a custom recipe it will include
123
123
# its own jobs_allowlist, filter_patterns and other settings.
124
124
recipe = recipe_helpers .load_recipe_from_data (recipe_data )
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def create_tasks(self, evidence):
58
58
tasks = []
59
59
for evidence_object in evidence :
60
60
# No need to run the hasher task for BodyFile type.
61
- if evidence_object .type is not 'BodyFile' :
61
+ if evidence_object .type != 'BodyFile' :
62
62
tasks .append (PlasoHasherTask ())
63
63
tasks .append (PlasoParserTask ())
64
64
return tasks
You can’t perform that action at this time.
0 commit comments