mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-24 03:48:13 +01:00
Update profile_check.py
This commit is contained in:
parent
3030c28c05
commit
8f4b330407
1 changed files with 3 additions and 0 deletions
|
@ -456,6 +456,9 @@ def main(argv):
|
||||||
profile_data.update(profilesInFile)
|
profile_data.update(profilesInFile)
|
||||||
|
|
||||||
for m in messages:
|
for m in messages:
|
||||||
|
if m.get('suggestion'):
|
||||||
|
if m['suggestion'].endswith('\n'):
|
||||||
|
m['suggestion'] = m.get('suggestion').removesuffix('\n')
|
||||||
m['filename'] = str(m.get('filename'))
|
m['filename'] = str(m.get('filename'))
|
||||||
print(json.dumps(m, indent=2))
|
print(json.dumps(m, indent=2))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue