Update yeti.py

using attribute
pull/488/head
Sebdraven 2021-03-05 16:57:55 +01:00
parent 33bba708bf
commit 294bdee51a
1 changed files with 3 additions and 3 deletions

View File

@ -77,11 +77,11 @@ def handler(q=False):
apikey = request['config']['apikey']
if apikey and yeti_url:
yeti_client = Yeti(yeti_url,apikey)
if request.get('ip-dst'):
obs_value = request['ip-dst']
if request.get('attribute'):
attribute = request['attribute']
if yeti_client:
obs = yeti_client.search(obs_value)
obs = yeti_client.search(attribute['value'])
values = []
types = []
to_push = {"results": []}