Skip to content

Commit 3f801be

Browse files
authored
Fix typos (#1180)
* fix typo * fix typos * fix inequality syntax
1 parent ea0d920 commit 3f801be

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

turbinia/api/models/request_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class RequestsSummary(BaseModel):
118118
"""Represents a summary view of multiple Turbinia requests."""
119119
requests_status: List[RequestStatus] = []
120120

121-
def get_requests_summmary(self):
121+
def get_requests_summary(self):
122122
"""Generates a status summary for each Turbinia request."""
123123
_state_manager = state_manager.get_state_manager()
124124
instance_id = turbinia_config.INSTANCE_ID

turbinia/api/routes/request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async def get_requests_summary():
4242
"""
4343
requests_summary = request_status.RequestsSummary()
4444
try:
45-
if not requests_summary.get_requests_summmary():
45+
if not requests_summary.get_requests_summary():
4646
return JSONResponse(
4747
content={'detail': 'Request summary is empty'}, status_code=200)
4848
return requests_summary
@@ -118,7 +118,7 @@ async def create_request(req: request.Request):
118118

119119
if recipe_data:
120120
# 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.
122122
# We assume that if the client provided a custom recipe it will include
123123
# its own jobs_allowlist, filter_patterns and other settings.
124124
recipe = recipe_helpers.load_recipe_from_data(recipe_data)

turbinia/jobs/plaso.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def create_tasks(self, evidence):
5858
tasks = []
5959
for evidence_object in evidence:
6060
# No need to run the hasher task for BodyFile type.
61-
if evidence_object.type is not 'BodyFile':
61+
if evidence_object.type != 'BodyFile':
6262
tasks.append(PlasoHasherTask())
6363
tasks.append(PlasoParserTask())
6464
return tasks

0 commit comments

Comments
 (0)