mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 14:54:24 -04:00
Remove code path that will never get hit
This commit is contained in:
parent
d737546dd7
commit
f2ccc228a3
1 changed files with 2 additions and 5 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue