OK, a simplistic solution would be to change 'xhci' == test.rem_disks_xhci[disk] to 'xhci' == test.rem_disks_xhci.get(disk,"") to guarantee we get a comparable value all the time. However, there seems to be a deeper problem here, where the script is not considering /dev/sdb1 as having the xhci driver. I checked the attached udev file and it *is* using the xhci_hcd driver, so the logic is somewhow getting things wrong.
I'd prefer Tai to look at this, since he wrote the code, so I'll assign the bug to him, I can look into this next week if there haven't been any changes by then.
OK, a simplistic solution would be to change 'xhci' == test.rem_ disks_xhci[ disk] to 'xhci' == test.rem_ disks_xhci. get(disk, "") to guarantee we get a comparable value all the time. However, there seems to be a deeper problem here, where the script is not considering /dev/sdb1 as having the xhci driver. I checked the attached udev file and it *is* using the xhci_hcd driver, so the logic is somewhow getting things wrong.
I'd prefer Tai to look at this, since he wrote the code, so I'll assign the bug to him, I can look into this next week if there haven't been any changes by then.