Univention Bugzilla – Attachment 10297 Details for
Bug 50835
Improve error handling for quota parsing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Debug quotza tracebacks
quota_debug.py (text/x-python), 672 bytes, created by
Jürn Brodersen
on 2020-02-18 13:22:06 CET
(
hide
)
Description:
Debug quotza tracebacks
Filename:
MIME Type:
Creator:
Jürn Brodersen
Created:
2020-02-18 13:22:06 CET
Size:
672 bytes
patch
obsolete
>import sys >from univention.management.console.modules.quota.tools import repquota_parse > ># get the repquota report: ># /usr/sbin/repquota -C -v $PARTITION > quotareport.txt ># call this script with the path to quotareport.txt ># wait for a traceback... the last printed line is a problem > > >def main(): > report_file = sys.argv[1] > with open(report_file, 'r') as report: > lines = report.readlines() > for line in lines[5:]: > try: > repquota_parse('foo', [line.strip()]) > except ValueError: > print('############Broken?###########') > print(line.strip()) > > >if __name__ == '__main__': > main()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 50835
: 10297