From c712fccdc5cd9c76ab3741b63f1238ee9ebaa0d6 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Wed, 24 Mar 2021 22:42:40 +0100 Subject: [#1663] Added an error for HTTPS vs Python2 --- src/bin/shell/kea_connector2.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bin/shell/kea_connector2.py b/src/bin/shell/kea_connector2.py index 47275ae3fc..e4c90004f9 100644 --- a/src/bin/shell/kea_connector2.py +++ b/src/bin/shell/kea_connector2.py @@ -15,6 +15,10 @@ from kea_conn import CAResponse # CARequest def send_to_control_agent(params): """ Sends a request to Control Agent, receives a response and returns it.""" + # No HTTP support. + if params.ca or params.cert: + raise NotImplementedError('Python2 kea-shell does not support HTTPS') + # Establish HTTP connection first. conn = httplib.HTTPConnection(params.http_host, params.http_port) conn.connect() -- cgit v1.2.3