Skip to content

Commit b0c9daa

Browse files
author
Ran Isenberg
committed
rename
1 parent 6ec9a8f commit b0c9daa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws_lambda_powertools/utilities/feature_toggles/configuration_store.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(
3232
self._schema_validator = schema.SchemaValidator(self._logger)
3333
self._conf_store = AppConfigProvider(environment=environment, application=service, config=config)
3434

35-
def _match_by_action(self, action: str, CONDITION_VALUE: Any, context_value: Any) -> bool:
35+
def _match_by_action(self, action: str, condition_value: Any, context_value: Any) -> bool:
3636
if not context_value:
3737
return False
3838
mapping_by_action = {
@@ -44,7 +44,7 @@ def _match_by_action(self, action: str, CONDITION_VALUE: Any, context_value: Any
4444

4545
try:
4646
func = mapping_by_action.get(action, lambda a, b: False)
47-
return func(context_value, CONDITION_VALUE)
47+
return func(context_value, condition_value)
4848
except Exception as exc:
4949
self._logger.error(f"caught exception while matching action, action={action}, exception={str(exc)}")
5050
return False

0 commit comments

Comments
 (0)