Commit 1e9b9d5
remote/client: fix named resource matching
`digital_io`, `bootstrap`, `sd_mux`, `usb_mux` and `video` tried to match
against class only instead of class _and_ name if provided. This lead to
an early fail and an uncaught exception when a resource was found but the
name did not match.
Skip resources whose name does not match.
The `power` sub command had the same issue until commit
ac56062
Fixes #1679
Signed-off-by: Sebastian Gross <sgross@emlix.com>
[bst: improved commit message]
(cherry picked from commit 4e86365)1 parent 5020e16 commit 1e9b9d5
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
| 920 | + | |
| 921 | + | |
920 | 922 | | |
921 | 923 | | |
922 | 924 | | |
| |||
1103 | 1105 | | |
1104 | 1106 | | |
1105 | 1107 | | |
| 1108 | + | |
| 1109 | + | |
1106 | 1110 | | |
1107 | 1111 | | |
1108 | 1112 | | |
| |||
1136 | 1140 | | |
1137 | 1141 | | |
1138 | 1142 | | |
| 1143 | + | |
| 1144 | + | |
1139 | 1145 | | |
1140 | 1146 | | |
1141 | 1147 | | |
| |||
1168 | 1174 | | |
1169 | 1175 | | |
1170 | 1176 | | |
| 1177 | + | |
| 1178 | + | |
1171 | 1179 | | |
1172 | 1180 | | |
1173 | 1181 | | |
| |||
1300 | 1308 | | |
1301 | 1309 | | |
1302 | 1310 | | |
| 1311 | + | |
| 1312 | + | |
1303 | 1313 | | |
1304 | 1314 | | |
1305 | 1315 | | |
| |||
0 commit comments