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