Commit ccc2d9c
committed
device_server.serve_devices: copy devices to prevent change on caller (#211)
This commit has serve_devices make a deepcopy of the devices argument
so that in case we need to make changes to it, we don't modify the
stuff in the caller. This commit reverts ef280c3 which was
another fix for this issue.
The way we support floating devices requires that we inject the index
value on the device configuration. However, we don't want that to
propagate to the caller which may be reusing that configuration (and
it kinda does it when device configuration is not specified see
discussion on #212).1 parent 7e21484 commit ccc2d9c
1 file changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | | - | |
123 | | - | |
124 | 123 | | |
125 | 124 | | |
126 | 125 | | |
| |||
392 | 391 | | |
393 | 392 | | |
394 | 393 | | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
395 | 400 | | |
396 | 401 | | |
397 | 402 | | |
| |||
0 commit comments