Skip to content

Commit

Permalink
minoe
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeAeich committed Sep 6, 2024
1 parent 3fa2eca commit ffecf22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tesk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from tesk.constants import TeskConstants
from tesk.custom_config import (
CustomConfig,
TaskmasterEnvProperties,
Taskmaster,
)
from tesk.exceptions import ConfigNotFoundError
from tesk.k8s.constants import TeskK8sConstants
Expand Down Expand Up @@ -151,15 +151,15 @@ def get_taskmaster_template() -> V1Job:
return job


def get_taskmaster_env_property() -> TaskmasterEnvProperties:
def get_taskmaster_env_property() -> Taskmaster:
"""Get the taskmaster env property from the custom configuration.
Returns:
The taskmaster env property.
"""
custom_conf = get_custom_config()
try:
return custom_conf.taskmaster_env_properties
return custom_conf.taskmaster
except AttributeError:
raise ConfigNotFoundError(
"Custom configuration doesn't seem to have taskmaster_env_properties in "
Expand Down

0 comments on commit ffecf22

Please sign in to comment.