Skip to content

Commit 8246b2e

Browse files
author
Ran Isenberg
committed
lint
1 parent 382ac3a commit 8246b2e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

aws_lambda_powertools/utilities/feature_flags/feature_flags.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,10 @@ def _evaluate_conditions(
6666

6767
for condition in conditions:
6868
context_value = context.get(str(condition.get(schema.CONDITION_KEY)))
69-
cond_action = condition.get(schema.CONDITION_ACTION, "")
69+
cond_value = condition.get(schema.CONDITION_ACTION, "")
7070
cond_value = condition.get(schema.CONDITION_VALUE)
7171

72-
if not self._match_by_action(
73-
action=condition_action, condition_value=condition_value, context_value=context_value
74-
):
72+
if not self._match_by_action(action=cond_value, condition_value=cond_value, context_value=context_value):
7573
logger.debug(
7674
f"rule did not match action, rule_name={rule_name}, rule_value={rule_match_value}, "
7775
f"name={feature_name}, context_value={str(context_value)} "

0 commit comments

Comments
 (0)