From 701704b03cf882ee3f72fb3ba1144f53681792c2 Mon Sep 17 00:00:00 2001 From: Edoardo Putti Date: Fri, 7 Oct 2016 22:35:30 +0200 Subject: [PATCH] switch to readign json instead of using as_request function --- certificate_requests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/certificate_requests.py b/certificate_requests.py index 37e7904..c458a82 100755 --- a/certificate_requests.py +++ b/certificate_requests.py @@ -52,9 +52,9 @@ class RequestLoader(object): stream, ) - requester = request_data.get('userName', None) or request_data.get('hostName', None) - root_requested = request_data.get('rootRequested', False) - key_data = request_data.get('keyData', None) + requester = request_data['request'].get('userName', None) or request_data.get('hostName', None) + root_requested = request_data['request'].get('rootRequested', False) + key_data = request_data['request'].get('keyData', None) # attribute cannot be read from # json, must add after decoding