mirror of https://github.com/MISP/MISP
fix: [stix2 export] Making sure we have the required name field set while exporting regkey values from a MISP regkey object to a STIX observed data
parent
02ef309d0b
commit
fb78b721dc
|
@ -1503,6 +1503,8 @@ class StixBuilder():
|
|||
else:
|
||||
observable[stix_type] = attribute['value']
|
||||
if values:
|
||||
if 'name' not in values:
|
||||
values['name'] = ''
|
||||
observable['values'] = [values]
|
||||
return {'0': observable}
|
||||
|
||||
|
|
Loading…
Reference in New Issue