Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Software
idms-linux-installer
Commits
3a8379a7
Commit
3a8379a7
authored
Jun 30, 2020
by
Nigel Kukard
Browse files
Cleaned up blkid attribute dict
parent
a1cdd712
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/idmslinux_installer/util/blkid.py
View file @
3a8379a7
...
...
@@ -38,6 +38,9 @@ class Blkid:
raise
OSError
(
f
'Failed to get blkid attributes from device
{
device
}
return code
{
proc
.
retcode
}
'
)
# Strip value, then split on the =
attribs
=
dict
(
x
.
rstrip
().
split
(
'='
,
1
)
for
x
in
result
)
attribs
:
Dict
[
str
,
str
]
=
{}
for
line
in
result
:
key
,
value
=
line
.
rstrip
().
split
(
'='
,
1
)
attribs
[
key
]
=
value
return
attribs
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment