mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 16:14:44 +02:00
Private _AttrDict
This commit is contained in:
@@ -21,14 +21,14 @@ from letsencrypt import storage
|
|||||||
from letsencrypt.plugins import disco as plugins_disco
|
from letsencrypt.plugins import disco as plugins_disco
|
||||||
|
|
||||||
|
|
||||||
class AttrDict(dict):
|
class _AttrDict(dict):
|
||||||
"""Attribute dictionary.
|
"""Attribute dictionary.
|
||||||
|
|
||||||
A trick to allow accessing dictionary keys as object attributes.
|
A trick to allow accessing dictionary keys as object attributes.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super(AttrDict, self).__init__(*args, **kwargs)
|
super(_AttrDict, self).__init__(*args, **kwargs)
|
||||||
self.__dict__ = self
|
self.__dict__ = self
|
||||||
|
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@ def renew(cert, old_version):
|
|||||||
return False
|
return False
|
||||||
# Instantiate the appropriate authenticator
|
# Instantiate the appropriate authenticator
|
||||||
plugins = plugins_disco.PluginsRegistry.find_all()
|
plugins = plugins_disco.PluginsRegistry.find_all()
|
||||||
config = configuration.NamespaceConfig(AttrDict(renewalparams))
|
config = configuration.NamespaceConfig(_AttrDict(renewalparams))
|
||||||
# XXX: this loses type data (for example, the fact that key_size
|
# XXX: this loses type data (for example, the fact that key_size
|
||||||
# was an int, not a str)
|
# was an int, not a str)
|
||||||
config.rsa_key_size = int(config.rsa_key_size)
|
config.rsa_key_size = int(config.rsa_key_size)
|
||||||
|
|||||||
Reference in New Issue
Block a user