We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fecd9e0 commit 0093aa7Copy full SHA for 0093aa7
1 file changed
providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/grpc.py
@@ -434,7 +434,10 @@ def _resolve( # noqa: PLR0915 C901
434
# When no default variant is configured, the server returns an empty/zero proto
435
# value with reason=DEFAULT. For DISABLED flags the server omits the variant too.
436
# In both cases, return the caller's code default value.
437
- if response.reason in (Reason.DEFAULT, Reason.DISABLED) and not response.variant:
+ if (
438
+ response.reason in (Reason.DEFAULT, Reason.DISABLED)
439
+ and not response.variant
440
+ ):
441
value = default_value
442
443
# Got a valid flag and valid type. Return it.
0 commit comments