Ticket #29 (closed defect: fixed)
Error in pkrefund when run through sudo
Reported by: | jerome | Owned by: | jerome |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | pykota | Version: | stable |
Keywords: | Cc: |
Description
os.getlogin() raises an OSError when it's called from a sudo run command:
ERROR: PyKota v1.26_fixes_official
ERROR: pkrefund failed
ERROR: Traceback (most recent call last):
ERROR: File "/usr/bin/pkrefund", line 444, in <module>
ERROR: retcode = refundmanager.main(args, options)
ERROR: File "/usr/bin/pkrefund", line 371, in main
ERROR: job.refund(reason)
ERROR: File "/usr/lib/python2.5/site-packages/pykota/storage.py", line 494, in refund
ERROR: os.getlogin(),
ERROR: OSError: [Errno 2] No such file or directory
Change History
Note: See
TracTickets for help on using
tickets.