fixed lint scoping issue

This commit is contained in:
Noah Swartz 2015-11-20 11:42:08 -08:00
parent 707bb55c81
commit 793f2b4f90
2 changed files with 3 additions and 3 deletions

View file

@ -234,7 +234,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
if not vhost.enabled:
self.enable_site(vhost)
def choose_vhost(self, target_name, dvsni=False):
def choose_vhost(self, target_name, temp=False):
"""Chooses a virtual host based on the given domain name.
If there is no clear virtual host to be selected, the user is prompted
@ -255,7 +255,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
# Try to find a reasonable vhost
vhost = self._find_best_vhost(target_name)
if vhost is not None:
if dvsni:
if temp:
return vhost
if not vhost.ssl:
vhost = self.make_vhost_ssl(vhost)

View file

@ -110,7 +110,7 @@ class ApacheDvsni(common.TLSSNI01):
def get_dvsni_addrs(self, achall):
"""Return the Apache addresses needed for DVSNI."""
vhost = self.configurator.choose_vhost(achall.domain, dvsni=True)
vhost = self.configurator.choose_vhost(achall.domain, temp=True)
# TODO: Checkout _default_ rules.
dvsni_addrs = set()