Skip to content

Commit 6f9176c

Browse files
committed
rename invocation_context to before_hooks_context
1 parent 427f917 commit 6f9176c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openfeature/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,13 +486,13 @@ def _run_before_hooks_and_update_context(
486486
# Any resulting evaluation context from a before hook will overwrite
487487
# duplicate fields defined globally, on the client, or in the invocation.
488488
# Requirement 3.2.2, 4.3.4: API.context->client.context->invocation.context
489-
invocation_context = before_hooks(
489+
before_hooks_context = before_hooks(
490490
flag_type, hook_context, merged_hooks, hook_hints
491491
)
492492

493493
# The hook_context.evaluation_context already contains the merged context from
494494
# _establish_hooks_and_provider, so we just need to merge with the before hooks result
495-
merged_context = hook_context.evaluation_context.merge(invocation_context)
495+
merged_context = hook_context.evaluation_context.merge(before_hooks_context)
496496

497497
return merged_context
498498

0 commit comments

Comments
 (0)