Quotas sur tous les filesystems
This commit is contained in:
parent
7b83d62044
commit
1171bc8ca6
1 changed files with 12 additions and 12 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue