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

pull/6022/head
chrisr3d 2020-05-25 11:58:58 +02:00
parent 02ef309d0b
commit fb78b721dc
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 2 additions and 0 deletions

View File

@ -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}