From f2ccc228a3eaf5731d62169683539b005a3cc21c Mon Sep 17 00:00:00 2001 From: Liam Marshall Date: Mon, 23 Nov 2015 13:17:24 -0600 Subject: [PATCH] Remove code path that will never get hit --- letsencrypt-apache/letsencrypt_apache/configurator.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/letsencrypt-apache/letsencrypt_apache/configurator.py b/letsencrypt-apache/letsencrypt_apache/configurator.py index ff95eef95..98cd5b407 100644 --- a/letsencrypt-apache/letsencrypt_apache/configurator.py +++ b/letsencrypt-apache/letsencrypt_apache/configurator.py @@ -221,11 +221,8 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator): self.aug.set(path["cert_path"][-1], cert_path) self.aug.set(path["cert_key"][-1], key_path) if chain_path is not None: - if not path["chain_path"]: - self.parser.add_dir(vhost.path, - "SSLCertificateChainFile", chain_path) - else: - self.aug.set(path["chain_path"][-1], chain_path) + self.parser.add_dir(vhost.path, + "SSLCertificateChainFile", chain_path) else: raise errors.PluginError("--chain-path is required for your version of Apache") else: