Skip to content

Commit 6749aff

Browse files
committed
CR by Lior. Fixing previous commit where context was omitted
1 parent 5ba335b commit 6749aff

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Integrations/integration-MinervaLabsAntiEvasionPlatform.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ script:
7676
'Name': process['processName']
7777
}
7878
context.append(process_context)
79-
ec['Minerva.Process'] = context
79+
ec['Minerva.Process(val.Id === obj.Id)'] = context
8080
elif context_id.endswith('endpoints'):
8181
context = []
8282
for endpoint in data:
@@ -88,7 +88,7 @@ script:
8888
'OS': endpoint['operatingSystem']
8989
}
9090
context.append(endpoint_context)
91-
ec['Minerva.Endpoint'] = context
91+
ec['Minerva.Endpoint(val.Id === obj.Id)'] = context
9292
elif context_id.endswith('groups'):
9393
context = []
9494
for group in data:
@@ -102,7 +102,7 @@ script:
102102
'CreationTime': group['creationTime']
103103
}
104104
context.append(group_context)
105-
ec['Minerva.Group'] = context
105+
ec['Minerva.Group(val.Id === obj.Id)'] = context
106106
elif context_id.endswith('vaccination'):
107107
context = []
108108
if isinstance(data, list):
@@ -117,7 +117,7 @@ script:
117117
'Last modified on': vaccine['lastModifiedOn']
118118
}
119119
context.append(vaccine_context)
120-
ec['Minerva.Vaccine'] = context
120+
ec['Minerva.Vaccine(val.Id === obj.Id)'] = context
121121
else:
122122
context = {
123123
'Id': data['id'],
@@ -143,7 +143,7 @@ script:
143143
'Applied groups': exclusion['appliedGroupsIds']
144144
}
145145
context.append(exclusion_context)
146-
ec['Minerva.Exclusion'] = context
146+
ec['Minerva.Exclusion(val.Id === obj.Id)'] = context
147147
else:
148148
context = {
149149
'Id': data['id'],
@@ -228,7 +228,8 @@ script:
228228
'Type': entryTypes['note'],
229229
'ContentsFormat': formats['markdown'],
230230
'Contents': response.json(),
231-
'HumanReadable': tableToMarkdown('Available groups', t=response.json(), headerTransform=pascalToSpace, removeNull=True)
231+
'HumanReadable': tableToMarkdown('Available groups', t=response.json(), headerTransform=pascalToSpace, removeNull=True),
232+
'EntryContext': create_entry_context(get_groups_url, response.json())
232233
}
233234
demisto.results(results)
234235

0 commit comments

Comments
 (0)