mirror of https://github.com/MISP/misp-modules
updated
parent
c32d772275
commit
d3d772a225
|
@ -29,7 +29,7 @@ _IPGEO_MAPPING ={
|
|||
'state_prov':'state',
|
||||
'zipcode':'zipcode',
|
||||
'ip':'ip-src'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
def handler(q=False):
|
||||
|
@ -37,7 +37,7 @@ def handler(q=False):
|
|||
if q is False:
|
||||
return False
|
||||
request = json.loads(q)
|
||||
if not request.get('config'):
|
||||
if request.get('config'):
|
||||
return {'error' : 'IpGeolocation Configuration is missing'}
|
||||
if not request['config'].get('apiKey'):
|
||||
return {'error' : 'IpGeolocation apiKey is missing'}
|
||||
|
|
Loading…
Reference in New Issue