From 92ea6cb049858de48952c852a3a3318e2d77f03c Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Fri, 20 Mar 2020 16:20:31 -0700 Subject: [PATCH] Make sure we're not throwing away any unwritten changes to the config --- certbot-apache/certbot_apache/_internal/configurator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/certbot-apache/certbot_apache/_internal/configurator.py b/certbot-apache/certbot_apache/_internal/configurator.py index c8d55124d..04551370a 100644 --- a/certbot-apache/certbot_apache/_internal/configurator.py +++ b/certbot-apache/certbot_apache/_internal/configurator.py @@ -1308,6 +1308,8 @@ class ApacheConfigurator(common.Installer): self.enable_mod("socache_shmcb", temp=temp) if "ssl_module" not in self.parser.modules: self.enable_mod("ssl", temp=temp) + # Make sure we're not throwing away any unwritten changes to the config + self.parser.ensure_augeas_state() self.parser.aug.load() self.parser.reset_modules() # Reset to load the new ssl_module path # Call again because now we can gate on openssl version