@@ -197,7 +197,7 @@ def get_float(self, key):
197
197
return self .get_value (key ).as_float ()
198
198
199
199
def get_value (self , key ):
200
- if self ._config_values [ key ] :
200
+ if key in self ._config_values :
201
201
return self ._config_values [key ]
202
202
return _Value ('static' )
203
203
@@ -261,7 +261,6 @@ def evaluate(self):
261
261
"""Internal function Evaluates the cached server template to produce
262
262
a ServerConfig"""
263
263
evaluated_conditions = self .evaluate_conditions (self ._conditions , self ._context )
264
-
265
264
# Overlays config Value objects derived by evaluating the template.
266
265
if self ._parameters :
267
266
for key , parameter in self ._parameters .items ():
@@ -454,10 +453,10 @@ def evaluate_custom_signal_condition(self, custom_signal_condition,
454
453
Returns:
455
454
True if the condition is met, False otherwise.
456
455
"""
457
- custom_signal_operator = custom_signal_condition .get ('custom_signal_operator ' ) or {}
458
- custom_signal_key = custom_signal_condition .get ('custom_signal_key ' ) or {}
456
+ custom_signal_operator = custom_signal_condition .get ('customSignalOperator ' ) or {}
457
+ custom_signal_key = custom_signal_condition .get ('customSignalKey ' ) or {}
459
458
target_custom_signal_values = (
460
- custom_signal_condition .get ('target_custom_signal_values ' ) or {})
459
+ custom_signal_condition .get ('targetCustomSignalValues ' ) or {})
461
460
462
461
if not all ([custom_signal_operator , custom_signal_key , target_custom_signal_values ]):
463
462
logger .warning ("Missing operator, key, or target values for custom signal condition." )
0 commit comments