mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Make CVEs into a list in glsa_check_list
This commit is contained in:
parent
b7546f50ce
commit
73a48a471c
@ -219,8 +219,9 @@ def _glsa_list_process_output(output):
|
||||
status += ' Applied (injected)'
|
||||
if 'CVE' in desc:
|
||||
desc, cves = desc.rsplit(None, 1)
|
||||
cves = cves.split(',')
|
||||
else:
|
||||
cves = ''
|
||||
cves = list()
|
||||
ret[glsa_id] = {'description': desc, 'status': status,
|
||||
'CVEs': cves}
|
||||
except ValueError:
|
||||
@ -239,7 +240,7 @@ def glsa_check_list(glsa_list):
|
||||
|
||||
{<glsa id>: {'description': <glsa description>,
|
||||
'status': <glsa status>,
|
||||
'CVEs': <list of CVEs>}}
|
||||
'CVEs': [<list of CVEs>]}}
|
||||
|
||||
CLI Example::
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user