Skip to content

Commit

Permalink
make typos happy
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeAeich committed Aug 3, 2024
1 parent eb652f4 commit 89e2dfb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
7 changes: 3 additions & 4 deletions tesk/api/ga4gh/tes/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@ def CreateTask(**kwargs) -> dict: # type: ignore
try:
request_body = kwargs.get("body")
if request_body is None:
logger("Nothing recieved in request body.")
raise BadRequest("No request body recieved.")
logger("Nothing received in request body.")
raise BadRequest("No request body received.")
tes_task = TesTask(**request_body)
namespace = "tesk"
task_creater = CreateTesTask(tes_task, namespace)
task_creater.response()
CreateTesTask(tes_task, namespace).response()
except Exception as e:
raise InternalServerError from e

Expand Down
3 changes: 0 additions & 3 deletions tesk/api/kubernetes/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ def __init__(self, namespace=TeskConstants.tesk_namespace):
Args:
namespace: Namespace to use for Kubernetes.
"""
# NOTE: WE might want to provide config files to load_kube_config
# we can have env variable define this or it can be passed from
# custom in FOCA config. Latter is prefered.
config.load_kube_config()
self.batch_api = client.BatchV1Api()
self.core_api = client.CoreV1Api()
Expand Down
2 changes: 1 addition & 1 deletion tesk/api/kubernetes/convert/template.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Create tamplates for kubernetes objects."""
"""Create template for kubernetes objects."""

import logging
import uuid
Expand Down
2 changes: 1 addition & 1 deletion tesk/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class TeskConstants:
taskmaster_service_account_name: str = os.getenv(
"TESK_API_TASKMASTER_SERVICE_ACCOUNT_NAME", "taskmaster"
)
taskmaster_environement_executor_backoff_limit: str = os.getenv(
taskmaster_environment_executor_backoff_limit: str = os.getenv(
"ENVIRONMENT_EXECUTOR_BACKOFF_LIMIT", "2"
)
filer_environment_filer_backoff_limit: str = os.getenv(
Expand Down

0 comments on commit 89e2dfb

Please sign in to comment.