Repair secscan's analyze_layer API call

This commit is contained in:
Quentin Machu 2016-03-02 16:05:11 -05:00
parent 85208ae5a3
commit 4f7a66ab0e

View file

@ -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)