Commit 91ee54e
committed
fix(flagd): RPC Object resolver tolerates missing value field
MessageToDict drops the value field entirely for DISABLED responses (no value is sent). Fall back to the caller's default_value via .get() instead of raising KeyError; the substitution branch then surfaces the default with reason=DISABLED.
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>1 parent f1a5d1d commit 91ee54e
1 file changed
Lines changed: 5 additions & 3 deletions
File tree
- providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | | - | |
413 | | - | |
414 | | - | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
415 | 417 | | |
416 | 418 | | |
417 | 419 | | |
| |||
0 commit comments