Skip to content

Commit 9239aaf

Browse files
committed
Client Bugfix: Actually update the payload
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent c59410c commit 9239aaf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414

1515
## Bug Fixes
1616

17-
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->
17+
* Fixed that client.update() was ignoring updates to "payload".

src/frequenz/client/dispatch/_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ async def update(
211211
msg.update.selector.CopyFrom(component_selector_to_protobuf(val))
212212
case "is_active":
213213
msg.update.is_active = val
214+
case "payload":
215+
msg.update.payload.update(val)
214216
case "active":
215217
msg.update.is_active = val
216218
key = "is_active"

0 commit comments

Comments
 (0)