Commit 76ddf42
Fix JSON serialization of neighbor VM restore results in recover.py (#22567)
What is the motivation for this PR
tests failed when trying to parse output from _neighbor_vm_recover_bgpd because ModuleResult is not JSON-serializable.
How did you do it
Add _make_ansible_results_serializable() to recursively convert ModuleResult (and nested structures) to be serializable.
How did you verify/test it
Reran the test.
Signed-off-by: Ori Trabelsi <[email protected]>
Signed-off-by: mssonicbld <[email protected]>1 parent f81429e commit 76ddf42
1 file changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
18 | 34 | | |
19 | 35 | | |
20 | 36 | | |
| |||
139 | 155 | | |
140 | 156 | | |
141 | 157 | | |
142 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
143 | 161 | | |
144 | 162 | | |
145 | 163 | | |
| |||
0 commit comments