Skip to content

Commit e2a4af0

Browse files
committed
fixup: shortand logic
Signed-off-by: Simon Schrottner <[email protected]>
1 parent 719f733 commit e2a4af0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/in_process.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ def _resolve(
147147
flag_metadata=metadata,
148148
reason=Reason.DEFAULT,
149149
)
150+
if isinstance(variant, bool):
151+
variant = str(variant).lower()
150152
if variant not in flag.variants:
151153
raise GeneralError(
152154
f"Resolved variant {variant} not in variants config."

0 commit comments

Comments
 (0)