mirror of
https://github.com/certbot/certbot.git
synced 2026-08-04 12:21:51 +02:00
fixed linting issues
This commit is contained in:
@@ -557,11 +557,11 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||||||
|
|
||||||
# search for NameVirtualHost directive for ip_addr
|
# search for NameVirtualHost directive for ip_addr
|
||||||
# note ip_addr can be FQDN although Apache does not recommend it
|
# note ip_addr can be FQDN although Apache does not recommend it
|
||||||
if (self.version >= (2,4)):
|
if self.version >= (2, 4):
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
self.save("don't lose config changes", True)
|
self.save("don't lose config changes", True)
|
||||||
return (self.parser.find_dir("NameVirtualHost", str(target_addr)))
|
return self.parser.find_dir("NameVirtualHost", str(target_addr))
|
||||||
|
|
||||||
def add_name_vhost(self, addr):
|
def add_name_vhost(self, addr):
|
||||||
"""Adds NameVirtualHost directive for given address.
|
"""Adds NameVirtualHost directive for given address.
|
||||||
|
|||||||
Reference in New Issue
Block a user