From 4a13711972f62fbb8668880a8d055cd17d8e3214 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 17 Nov 2021 09:39:34 -0500 Subject: [PATCH] Fix discovery of pre-nonce firmware --- confluent_server/confluent/discovery/handlers/xcc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/confluent_server/confluent/discovery/handlers/xcc.py b/confluent_server/confluent/discovery/handlers/xcc.py index 872856f6..d482e84e 100644 --- a/confluent_server/confluent/discovery/handlers/xcc.py +++ b/confluent_server/confluent/discovery/handlers/xcc.py @@ -149,6 +149,7 @@ class NodeHandler(immhandler.NodeHandler): headers = {'Connection': 'keep-alive', 'Content-Type': 'application/json'} rsp, status = wc.grab_json_response_with_status('/api/providers/get_nonce', {}) + nonce = None if status == 200: nonce = rsp.get('nonce', None) headers['Content-Security-Policy'] = 'nonce={0}'.format(nonce)