Commit 387b0a6
committed
fix: TypeError in agent announcement process
- Add type check in fsm.py to ensure payload is a dictionary before passing to set_from
- Add defensive check in host.py to verify required keys exist in announce response
- Prevents "'bool' object is not subscriptable" error in confluent_kafka tests
Signed-off-by: Paulo Vital <[email protected]>1 parent 1a05aba commit 387b0a6
2 files changed
+10
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
145 | 150 | | |
146 | 151 | | |
147 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
0 commit comments