We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91ee54e commit e439b30Copy full SHA for e439b30
1 file changed
providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/grpc.py
@@ -447,7 +447,10 @@ def _resolve( # noqa: PLR0915 C901
447
# When no default variant is configured, the server returns an empty/zero proto
448
# value with reason=DEFAULT. For DISABLED flags the server omits the variant too.
449
# In both cases, return the caller's code default value.
450
- if response.reason in (Reason.DEFAULT, Reason.DISABLED) and not response.variant:
+ if (
451
+ response.reason in (Reason.DEFAULT, Reason.DISABLED)
452
+ and not response.variant
453
+ ):
454
value = default_value
455
456
# Got a valid flag and valid type. Return it.
0 commit comments