Fix a couple nits

This commit is contained in:
Brad Warren
2016-01-11 18:27:01 -08:00
parent 24e6f4142b
commit 4cdf63c55e
@@ -740,10 +740,8 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
if target[0] in ("'", '"') and target[0] == target[-1]: if target[0] in ("'", '"') and target[0] == target[-1]:
target = target[1:-1] target = target[1:-1]
if target.startswith("https://"): # Sift line if it redirects the request to a HTTPS site
return True return target.startswith("https://")
return False
def _copy_create_ssl_vhost_skeleton(self, avail_fp, ssl_fp): def _copy_create_ssl_vhost_skeleton(self, avail_fp, ssl_fp):
"""Copies over existing Vhost with IfModule mod_ssl.c> skeleton. """Copies over existing Vhost with IfModule mod_ssl.c> skeleton.
@@ -771,7 +769,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
"were disabled on your HTTPS site,\n" "were disabled on your HTTPS site,\n"
"# because they have the potential to " "# because they have the potential to "
"create redirection loops.\n") "create redirection loops.\n")
sift = True sift = True
new_file.write("# " + line) new_file.write("# " + line)
else: else:
new_file.write(line) new_file.write(line)