From e0877bc0b100bf9a23541dec0be7d3a4f2ea1442 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 11 Feb 2019 11:00:47 -0500 Subject: [PATCH] Workaround older python lack of SSLEOFError Older python does nat have this exception, stub it out for older python. --- confluent_server/confluent/plugins/hardwaremanagement/ipmi.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py index 10026b88..f6eab7ca 100644 --- a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py +++ b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py @@ -37,6 +37,9 @@ ipmicommand = eventlet.import_patched('pyghmi.ipmi.command') import socket import ssl +if not hasattr(ssl, 'SSLEOFError'): + ssl.SSLEOFError = None + pci_cache = {} def get_dns_txt(qstring):