From a358feb82e41a35b826595d9500733d4bcf9c5bc Mon Sep 17 00:00:00 2001 From: James Kasten Date: Tue, 24 Feb 2015 18:09:50 -0800 Subject: [PATCH] restore names --- letsencrypt/client/apache/configurator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/letsencrypt/client/apache/configurator.py b/letsencrypt/client/apache/configurator.py index 78e76239b..af71ff5f7 100644 --- a/letsencrypt/client/apache/configurator.py +++ b/letsencrypt/client/apache/configurator.py @@ -1023,13 +1023,13 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator): self.restart() -def enable_mod(mod_name, apache_init, apache_enmod): +def enable_mod(mod_name, apache_init_script, apache_enmod): """Enables module in Apache. Both enables and restarts Apache so module is active. :param str mod_name: Name of the module to enable. - :param str apache_init: Path to the Apache init script. + :param str apache_init_script: Path to the Apache init script. :param str apache_enmod: Path to the Apache a2enmod script. """ @@ -1039,7 +1039,7 @@ def enable_mod(mod_name, apache_init, apache_enmod): subprocess.check_call(["sudo", apache_enmod, mod_name], # TODO: sudo? stdout=open("/dev/null", 'w'), stderr=open("/dev/null", 'w')) - apache_restart(apache_init) + apache_restart(apache_init_script) except (OSError, subprocess.CalledProcessError) as err: logging.error("Error enabling mod_%s", mod_name) logging.error("Exception: %s", err)