diff options
author | Francis Dupont <fdupont@isc.org> | 2021-03-24 22:42:40 +0100 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2021-03-25 09:31:33 +0100 |
commit | c712fccdc5cd9c76ab3741b63f1238ee9ebaa0d6 (patch) | |
tree | b6fa95583ec3faeaaad7ed750248607ff3d5878f /src/bin/shell | |
parent | [#1663] Almost finished (diff) | |
download | kea-c712fccdc5cd9c76ab3741b63f1238ee9ebaa0d6.tar.xz kea-c712fccdc5cd9c76ab3741b63f1238ee9ebaa0d6.zip |
[#1663] Added an error for HTTPS vs Python2
Diffstat (limited to 'src/bin/shell')
-rw-r--r-- | src/bin/shell/kea_connector2.py | 4 |
1 files changed, 4 insertions, 0 deletions
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() |