From 4f7a66ab0ee16e53eda047c88284d17ec5cb7de9 Mon Sep 17 00:00:00 2001 From: Quentin Machu Date: Wed, 2 Mar 2016 16:05:11 -0500 Subject: [PATCH] Repair secscan's analyze_layer API call --- util/secscan/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/secscan/api.py b/util/secscan/api.py index 3e1d72cd0..01a5d963c 100644 --- a/util/secscan/api.py +++ b/util/secscan/api.py @@ -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)