Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MPSD HPC Tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MPSD Computational Science
MPSD HPC Tools
Commits
a9e1abae
Commit
a9e1abae
authored
1 week ago
by
Henning Glawe
Browse files
Options
Downloads
Patches
Plain Diff
rename ambigous 'l' to 'df_fields' (ruff fix)
parent
3a132b1b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mpsd_hpc_tools/quota.py
+3
-3
3 additions, 3 deletions
src/mpsd_hpc_tools/quota.py
with
3 additions
and
3 deletions
src/mpsd_hpc_tools/quota.py
+
3
−
3
View file @
a9e1abae
...
@@ -86,10 +86,10 @@ def df_mountpoint(path: pathlib.Path) -> Tuple[int, int, int]:
...
@@ -86,10 +86,10 @@ def df_mountpoint(path: pathlib.Path) -> Tuple[int, int, int]:
except
:
except
:
return
None
,
None
,
None
return
None
,
None
,
None
for
line
in
output
.
splitlines
():
for
line
in
output
.
splitlines
():
l
=
line
.
split
()
df_fields
=
line
.
split
()
if
(
l
[
0
]
==
"
Filesystem
"
):
if
(
df_fields
[
0
]
==
"
Filesystem
"
):
continue
continue
(
size
,
used
,
avail
)
=
[
int
(
li
)
for
li
in
l
[
1
:
4
]]
(
size
,
used
,
avail
)
=
[
int
(
df_field
)
for
df_field
in
df_fields
[
1
:
4
]]
return
size
,
used
,
avail
return
size
,
used
,
avail
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment