Quotas sur tous les filesystems

This commit is contained in:
Pierre-Elliott Bécue 2015-02-01 13:18:55 +01:00
parent 7b83d62044
commit 1171bc8ca6

View file

@ -17,7 +17,7 @@ def getUserQuota( userLogin ):
pipe.close() pipe.close()
string_result = string_result.split("\n") string_result = string_result.split("\n")
quotas = [] quotas = []
for a_line in string_result[2:3]: for a_line in string_result[2:-1]:
usage, quota, limite, percentage, fs = a_line.split("\t") usage, quota, limite, percentage, fs = a_line.split("\t")
line_dict = { line_dict = {
"label": "Quota personnel", "label": "Quota personnel",
@ -25,7 +25,7 @@ def getUserQuota( userLogin ):
"quota":getFloat(quota), "quota":getFloat(quota),
"limite":getFloat(limite), "limite":getFloat(limite),
"%":getFloat(percentage), "%":getFloat(percentage),
"filesystem":"rda", # pourquoi pas ? "filesystem":fs, # pourquoi pas ?
} }
quotas.append(line_dict) quotas.append(line_dict)
return quotas return quotas