string does need to be a literal

This commit is contained in:
Erica Portnoy 2020-03-12 14:16:40 -07:00
parent ce02c53c92
commit c46ec17a0f

View file

@ -266,7 +266,7 @@ class ApacheConfigurator(common.Installer):
logger.warning("Unable to read ssl_module file; not disabling session tickets.")
return None
# looks like: OpenSSL 1.0.2s 28 May 2019
matches = re.findall(b"OpenSSL ([0-9]\.[^ ]+) ", contents)
matches = re.findall(br"OpenSSL ([0-9]\.[^ ]+) ", contents)
if not matches:
logger.warning("Could not find OpenSSL version; not disabling session tickets.")
return None