Merge pull request #1270 from coreos-inc/secscan_api_swap_params

Repair secscan's analyze_layer API call
This commit is contained in:
Quentin Machu 2016-03-02 18:01:07 -05:00
commit 8f0eb3c4cd

View file

@ -113,7 +113,7 @@ class SecurityScannerAPI(object):
logger.info('Analyzing layer %s', request['Layer']['Name'])
try:
response = self._call('POST', _API_METHOD_INSERT, request)
response = self._call('POST', _API_METHOD_INSERT, body=request)
json_response = response.json()
except requests.exceptions.Timeout:
logger.exception('Timeout when trying to post layer data response for %s', layer.id)