diff options
author | Joona Hoikkala <joona@kuori.org> | 2015-12-07 13:01:35 +0300 |
---|---|---|
committer | Joona Hoikkala <joona@kuori.org> | 2015-12-07 13:01:35 +0300 |
commit | 3d9f8c9748edf6c36a8a40cac8be45ec933ced44 (patch) | |
tree | 682b3d7bdbe17157bfe86849919495ebc1072326 /letsencrypt-apache | |
parent | 6e3da9e0438d26722623fdfb838b8e00cfeb36dc (diff) |
Cleanup & pydoc
Diffstat (limited to 'letsencrypt-apache')
-rw-r--r-- | letsencrypt-apache/letsencrypt_apache/configurator.py | 2 | ||||
-rw-r--r-- | letsencrypt-apache/letsencrypt_apache/constants.py | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/letsencrypt-apache/letsencrypt_apache/configurator.py b/letsencrypt-apache/letsencrypt_apache/configurator.py index 642a46696..c8b42bd5f 100644 --- a/letsencrypt-apache/letsencrypt_apache/configurator.py +++ b/letsencrypt-apache/letsencrypt_apache/configurator.py @@ -1087,7 +1087,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator): """ # Always return true for distros without enabled / available if self.conf("enmod") == None: - return True + return True enabled_dir = os.path.join(self.parser.root, "sites-enabled") for entry in os.listdir(enabled_dir): try: diff --git a/letsencrypt-apache/letsencrypt_apache/constants.py b/letsencrypt-apache/letsencrypt_apache/constants.py index 0fd9a25dc..24cf7373a 100644 --- a/letsencrypt-apache/letsencrypt_apache/constants.py +++ b/letsencrypt-apache/letsencrypt_apache/constants.py @@ -59,6 +59,10 @@ HEADER_ARGS = {"Strict-Transport-Security": HSTS_ARGS, "Upgrade-Insecure-Requests": UIR_ARGS} def os_constant(key): + """Get a constant value for operating system + :param key: name of cli constant + :return: value of constant for active os + """ os_info = le_util.get_os_info() try: constants = CLI_DEFAULTS[os_info[0].lower()] |