fix: include targetingKey in flagd serialized evaluation context (#58)

Signed-off-by: Federico Bond <federicobond@gmail.com>
This commit is contained in:
Federico Bond 2024-02-23 21:23:48 -03:00 committed by GitHub
parent 02157f447a
commit ddd79a49b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -193,6 +193,7 @@ class FlagdProvider(AbstractProvider):
s = Struct()
if evaluation_context:
try:
s["targetingKey"] = evaluation_context.targeting_key
s.update(evaluation_context.attributes)
except ValueError as exc:
message = (