Merge pull request #16 from Rafiot/master

Fix IPASN module
pull/24/head
Raphaël Vinot 2016-05-04 12:35:43 +02:00
commit 514bb4b695
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ def handler(q=False):
ipasn = IPASN(host=request['config'].get('host'), ipasn = IPASN(host=request['config'].get('host'),
port=request['config'].get('port'), db=request['config'].get('db')) port=request['config'].get('port'), db=request['config'].get('db'))
values = ' \n '.join(list(ipasn.aggregate_history(toquery))) values = ' \n '.join([' '.join(r)for r in ipasn.aggregate_history(toquery)])
if not values: if not values:
misperrors['error'] = 'Unable to find the history of this IP' misperrors['error'] = 'Unable to find the history of this IP'
return misperrors return misperrors