]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1663] Added an error for HTTPS vs Python2
authorFrancis Dupont <fdupont@isc.org>
Wed, 24 Mar 2021 21:42:40 +0000 (22:42 +0100)
committerFrancis Dupont <fdupont@isc.org>
Thu, 25 Mar 2021 08:31:33 +0000 (09:31 +0100)
src/bin/shell/kea_connector2.py

index 47275ae3fcef97db0e1725c02ddc33a523b04d1e..e4c90004f973dedbb21bd5972a23798761f1547b 100644 (file)
@@ -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()