diff options
author | Sourabh Jain <sourabhjain@linux.ibm.com> | 2020-05-06 16:45:40 +0530 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-05-07 10:04:30 -0400 |
commit | d1aa3d8054118b7cd1f01146655df2470de3a64e (patch) | |
tree | abbbcfe483fbec42ddd8aa90b07165086ee84ca3 /man | |
parent | d902e144f094fcfd090f64db615f86811faf12cf (diff) | |
download | sos-d1aa3d8054118b7cd1f01146655df2470de3a64e.tar.gz |
[policies] Take care of empty lines while parsing /etc/os-release
The check function in CozPolicy class hits the ValueError exception
if we have empty lines in /etc/os-release file.
Updated the list comprehension used to parse the /etc/os-release file
with a if condition to take care of empty lines.
Closes: #2045
Resolves: #2046
Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to 'man')
0 files changed, 0 insertions, 0 deletions