Skip to content

Commit 514bf33

Browse files
authored
Fix various typos (#1397)
1 parent aec786b commit 514bf33

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

turbinia/api/models/request_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def get_request_data(
7171
# current time, so that it can be used later to determine the first started
7272
# task and then get the evidence_name, as later tasks may have a different
7373
# evidence name. There is a small chance of the first task having a
74-
# different evidence_name, so getting it from arguments is prefered when
74+
# different evidence_name, so getting it from arguments is preferred when
7575
# they exist.
7676
# todo(igormr): Save request information in redis to get the evidence_name
7777
name_from_args = False

turbinia/api/models/tasks_statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def format_task_statistics(
249249
user (string): The user of the request we want tasks for.
250250
251251
Returns:
252-
bool: True if report was sucessfully acquired.
252+
bool: True if report was successfully acquired.
253253
"""
254254
task_stats = self.get_statistics(
255255
turbinia_config.INSTANCE_ID, days, task_id, request_id, user)

turbinia/api/models/workers_status.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_workers_information(self, days: int = 7) -> bool:
4343
days (int): The number of days we want status for.
4444
4545
Returns:
46-
bool: True if report was sucessfully acquired.
46+
bool: True if report was successfully acquired.
4747
"""
4848
task_results = state_manager.get_state_manager().get_task_data(
4949
turbinia_config.INSTANCE_ID, days)
@@ -126,7 +126,7 @@ def get_workers_status(self, days: int = 7, all_fields: bool = False) -> bool:
126126
all_fields (bool): Returns all status fields if set to true.
127127
128128
Returns:
129-
bool: True if report was sucessfully acquired.
129+
bool: True if report was successfully acquired.
130130
"""
131131

132132
workers_info = WorkersInfo()

turbinia/state_manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def set_attribute(
349349
json_value (str): The json-serialized value to be set
350350
351351
Returns:
352-
(bool): Boolean specifying whether the function call was sucessful.
352+
(bool): Boolean specifying whether the function call was successful.
353353
354354
Raises:
355355
TurbiniaException: When Redis fails in updating the attribute.
@@ -376,7 +376,7 @@ def get_attribute(
376376
decode_json (bool): Boolean specifying if the value should be loaded.
377377
378378
Returns:
379-
attribute_value (any): sucessful.
379+
attribute_value (any): successful.
380380
381381
Raises:
382382
TurbiniaException: If Redis fails in getting the attribute or if
@@ -544,7 +544,7 @@ def get_evidence_summary(
544544
"""Gets a summary of all evidences.
545545
546546
Args:
547-
group (str): Name of the evidence attribute by wich evidence will be
547+
group (str): Name of the evidence attribute by which evidence will be
548548
grouped.
549549
output (str): Output of the function (keys | content | count).
550550

turbinia/worker_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def testDockerDependencyCheck(
172172
self.assertRaises(
173173
TurbiniaException, check_docker_dependencies, dependencies)
174174

175-
# # Uncommment when the program dependency program check is uncommented
175+
# # Uncomment when the program dependency program check is uncommented
176176
# # in worker.py as well.
177177
# # Dependency not found.
178178
# mock_cm.execute_container.return_value = ['non_exist', None, 1]

turbinia/workers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ def create_result(
878878
def check_serialization_errors(self, result):
879879
"""Checks the TurbiniaTaskResult is valid for serialization.
880880
881-
This method checks the 'reuslt'' obejct is the correct type and whether
881+
This method checks the 'result'' object is the correct type and whether
882882
it is pickle/JSON serializable or not.
883883
884884
Args:

0 commit comments

Comments
 (0)