mirror of
https://github.com/certbot/certbot.git
synced 2026-08-04 00:22:38 +02:00
Cleanup
This commit is contained in:
@@ -140,7 +140,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||||||
"""
|
"""
|
||||||
# Verify Apache is installed
|
# Verify Apache is installed
|
||||||
for exe in (self.conf("ctl"), self.conf("enmod"), self.conf("dismod")):
|
for exe in (self.conf("ctl"), self.conf("enmod"), self.conf("dismod")):
|
||||||
if exe != None:
|
if exe is not None:
|
||||||
if not le_util.exe_exists(exe):
|
if not le_util.exe_exists(exe):
|
||||||
raise errors.NoInstallationError
|
raise errors.NoInstallationError
|
||||||
|
|
||||||
@@ -472,7 +472,6 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||||||
self._add_servernames(vhost)
|
self._add_servernames(vhost)
|
||||||
return vhost
|
return vhost
|
||||||
|
|
||||||
# TODO: make "sites-available" a configurable directory
|
|
||||||
def get_virtual_hosts(self):
|
def get_virtual_hosts(self):
|
||||||
"""Returns list of virtual hosts found in the Apache configuration.
|
"""Returns list of virtual hosts found in the Apache configuration.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user