Browse Source

Agent: fix formatting issues

master
Pekka Helenius 3 years ago
parent
commit
2a297cc4df
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      tools/pamusb-agent

+ 5
- 5
tools/pamusb-agent View File

@ -131,9 +131,9 @@ def usage():
def runAs(uid, gid):
def set_id():
os.setuid(uid)
os.setgid(gid)
return set_id
os.setuid(uid)
return set_id
import getopt
@ -186,9 +186,9 @@ def userDeviceThread(user):
for hotplug in user.findall('agent'):
henvs = {}
if len(hotplug.findall('cmd')) != 1:
logger.error('one command for an agent must be determined in user "%s" configuration.' % userName)
return 1
if len(hotplug.findall('cmd')) != 1:
logger.error('One command for an agent must be determined in user "%s" configuration.' % userName)
return 1
for henv in hotplug.findall('env'):
henv_var = re.sub(r'^(.*?)=.*$', '\\1', henv.text)


Loading…
Cancel
Save