From 7e263ed968cd07741a48347f033281afc225553e Mon Sep 17 00:00:00 2001 From: Christopher Harris Date: Thu, 16 May 2024 19:11:48 +0000 Subject: [PATCH] . --- morpheus/utils/env_config_value.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/morpheus/utils/env_config_value.py b/morpheus/utils/env_config_value.py index 18b5e9b718..b7e7d96e36 100644 --- a/morpheus/utils/env_config_value.py +++ b/morpheus/utils/env_config_value.py @@ -24,9 +24,9 @@ def __init__(self, value: str, use_env: bool = True): raise ValueError("value must not be none") self._value = value + + def value(self, default: str | None) -> str | None: + if self._value is None: + return default - def __str__(self): return self._value - - -# PB, DOCA, Asynchronious Programming, Strong C++ Programmer \ No newline at end of file