mirror of https://github.com/MISP/misp-modules
fix: [farsight_passivedns] Fixed pep8 backslash issue
parent
d1ac0cffe0
commit
c1e52fdb12
|
@ -117,10 +117,10 @@ def add_flex_queries(flex):
|
||||||
|
|
||||||
def flex_queries(client, name, lookup_args):
|
def flex_queries(client, name, lookup_args):
|
||||||
response = {}
|
response = {}
|
||||||
rdata = list(client.flex_rdata_regex(name.replace('.', '\.'), **lookup_args))
|
rdata = list(client.flex_rdata_regex(name.replace('.', '\\.'), **lookup_args))
|
||||||
if rdata:
|
if rdata:
|
||||||
response['flex_rdata'] = rdata
|
response['flex_rdata'] = rdata
|
||||||
rrnames = list(client.flex_rrnames_regex(name.replace('.', '\.'), **lookup_args))
|
rrnames = list(client.flex_rrnames_regex(name.replace('.', '\\.'), **lookup_args))
|
||||||
if rrnames:
|
if rrnames:
|
||||||
response['flex_rrnames'] = rrnames
|
response['flex_rrnames'] = rrnames
|
||||||
return response
|
return response
|
||||||
|
|
Loading…
Reference in New Issue