fix mitre-cti script - replace 'name' by 'value'

This commit is contained in:
Deborah Servili 2017-08-16 12:32:34 +02:00
parent fb5560f927
commit 06cfebc92f
4 changed files with 4 additions and 4 deletions

View file

@ -23,7 +23,7 @@ for element in os.listdir('.'):
value = {}
value['description'] = temp['description']
value['uuid'] = re.search('--(.*)$', temp['id']).group(0)[2:]
value['name'] = temp['name']
value['value'] = temp['name']
value['meta'] = {}
value['meta']['refs'] = []
for reference in temp['external_references']:

View file

@ -23,7 +23,7 @@ for element in os.listdir('.'):
value = {}
value['description'] = temp['description']
value['uuid'] = re.search('--(.*)$', temp['id']).group(0)[2:]
value['name'] = temp['name']
value['value'] = temp['name']
value['meta'] = {}
value['meta']['synonyms'] = temp['aliases']
value['meta']['refs']= []

View file

@ -23,7 +23,7 @@ for element in os.listdir('.'):
value = {}
value['description'] = temp['description']
value['uuid'] = re.search('--(.*)$', temp['id']).group(0)[2:]
value['name'] = temp['name']
value['value'] = temp['name']
value['meta'] = {}
value['meta']['refs'] = []
for reference in temp['external_references']:

View file

@ -23,7 +23,7 @@ for element in os.listdir('.'):
value = {}
value['description'] = temp['description']
value['uuid'] = re.search('--(.*)$', temp['id']).group(0)[2:]
value['name'] = temp['name']
value['value'] = temp['name']
value['meta'] = {}
value['meta']['refs'] = []
for reference in temp['external_references']: