mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 22:33:00 -04:00
switch to pkg_resources
This commit is contained in:
parent
7f0ac0e2f5
commit
5c7c12afa5
1 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
ALL_FOUR = ("cert", "privkey", "chain", "fullchain")
|
||||
README = "README"
|
||||
CURRENT_VERSION = util.get_strict_version(certbot.__version__)
|
||||
CURRENT_VERSION = pkg_resources.parse_version(certbot.__version__)
|
||||
BASE_PRIVKEY_MODE = 0o600
|
||||
|
||||
|
||||
|
|
@ -457,7 +457,7 @@ class RenewableCert(interfaces.RenewableCert):
|
|||
|
||||
conf_version = self.configuration.get("version")
|
||||
if (conf_version is not None and
|
||||
util.get_strict_version(conf_version) > CURRENT_VERSION):
|
||||
pkg_resources.parse_version(conf_version) > CURRENT_VERSION):
|
||||
logger.info(
|
||||
"Attempting to parse the version %s renewal configuration "
|
||||
"file found at %s with version %s of Certbot. This might not "
|
||||
|
|
|
|||
Loading…
Reference in a new issue