Browse Source

Agent: fix device check loop

master
Pekka Helenius 4 years ago
parent
commit
00eb18a9cb
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      tools/pamusb-agent

+ 3
- 0
tools/pamusb-agent View File

@ -197,10 +197,13 @@ def userDeviceThread(user):
deviceName = user.find('device').text.strip()
devices = doc.findall("devices/device")
deviceOK = False
for device in devices:
if device.get('id') == deviceName:
deviceOK = True
break
if not deviceOK:
logger.error('Device %s not found in configuration file.' % deviceName)
return 1


Loading…
Cancel
Save