Skip to content

Commit

Permalink
fix: get_environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu1nness committed Jan 24, 2025
1 parent e6af789 commit f549a2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion single_kernel_mongo/managers/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def set_environment(self):
def get_environment(self) -> str:
"""Gets the environment for the defined service."""
env = self.workload.get_env()
return env[self.workload.env_var]
return env.get(self.workload.env_var, "")

@abstractmethod
def build_parameters(self) -> list[list[str]]: # pragma: nocover
Expand Down

0 comments on commit f549a2e

Please sign in to comment.