fix: [pep8] More pep8 happiness

pull/299/head
Steve Clement 2019-05-02 11:06:32 +09:00 committed by GitHub
parent 553cf44337
commit 81ffabd621
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 25 deletions

View File

@ -16,7 +16,6 @@ as a cron job
'''
import json
import re
from ._vmray.vmray_rest_api import VMRayRESTAPI
@ -25,8 +24,7 @@ inputSource = []
moduleinfo = {'version': '0.2', 'author': 'Koen Van Impe',
'description': 'Import VMRay results',
'module-type': ['import']}
userConfig = {
'include_analysisid': {'type': 'Boolean',
userConfig = {'include_analysisid': {'type': 'Boolean',
'message': 'Include link to VMRay analysis'
},
'include_analysisdetails': {'type': 'Boolean',
@ -53,6 +51,7 @@ moduleconfig = ['apikey', 'url', 'wait_period']
def handler(q=False):
global include_analysisid, include_imphash_ssdeep, include_extracted_files, include_analysisdetails, include_vtidetails, include_static_to_ids
if q is False:
return False
request = json.loads(q)
@ -183,6 +182,7 @@ def vmrayDownloadAnalysis(api, analysis_id):
def vmrayVti(vti):
'''VMRay Threat Identifier (VTI) rules that matched for this analysis'''
if vti:
r = {'results': []}
for rule in vti:
@ -275,7 +275,7 @@ def vmrayAnalysisDetails(details, analysis_id):
return r
else:
return false
return False
def vmrayArtifacts(patterns):
@ -374,7 +374,7 @@ def vmrayArtifacts(patterns):
return y
else:
return false
return False
def vmrayCleanup(x):