mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Rephrase explanatory comment
This commit is contained in:
parent
1031e06443
commit
fd77f760ee
1 changed files with 1 additions and 2 deletions
|
@ -81,8 +81,7 @@ def get(string, clean=True):
|
|||
|
||||
val = _dmidecoder('-s {0}'.format(string)).strip()
|
||||
|
||||
# Sometimes dmidecode delivers comments in strings.
|
||||
# Don't.
|
||||
# Cleanup possible comments in strings.
|
||||
val = '\n'.join([v for v in val.split('\n') if not v.startswith('#')])
|
||||
|
||||
# handle missing /dev/mem
|
||||
|
|
Loading…
Add table
Reference in a new issue