diff --git a/tools/pamusb-agent b/tools/pamusb-agent index 75eb71b..100ccfe 100755 --- a/tools/pamusb-agent +++ b/tools/pamusb-agent @@ -158,7 +158,7 @@ events = { for hotplug in user.findall('agent'): events[hotplug.get('event')].append(hotplug.text) -deviceName = user.find('device').text +deviceName = user.find('device').text.strip() devices = doc.findall("devices/device") for device in devices: