You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Signed-off-by: Simon Schrottner <[email protected]>
diff --git c/providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/in_process.py i/providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/in_process.py
index 3906a2e..50565c6 100644
--- c/providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/in_process.py
+++ i/providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/in_process.py
@@ -147,8 +147,8 @@ class InProcessResolver:
flag_metadata=metadata,
reason=Reason.DEFAULT,
)
- if isinstance(variant, bool):
- variant = str(variant).lower()
+
+ variant = str(variant).lower() # convert to string to support shorthand
if variant not in flag.variants:
raise GeneralError(
f"Resolved variant {variant} not in variants config."
0 commit comments