Repair secscan's analyze_layer API call
This commit is contained in:
parent
85208ae5a3
commit
4f7a66ab0e
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ class SecurityScannerAPI(object):
|
||||||
|
|
||||||
logger.info('Analyzing layer %s', request['Layer']['Name'])
|
logger.info('Analyzing layer %s', request['Layer']['Name'])
|
||||||
try:
|
try:
|
||||||
response = self._call('POST', _API_METHOD_INSERT, request)
|
response = self._call('POST', _API_METHOD_INSERT, body=request)
|
||||||
json_response = response.json()
|
json_response = response.json()
|
||||||
except requests.exceptions.Timeout:
|
except requests.exceptions.Timeout:
|
||||||
logger.exception('Timeout when trying to post layer data response for %s', layer.id)
|
logger.exception('Timeout when trying to post layer data response for %s', layer.id)
|
||||||
|
|
Reference in a new issue