HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/1784574/root/lib/python3/dist-packages/certbot/_internal/__pycache__/
Upload File :
Current File : //proc/1784574/root/lib/python3/dist-packages/certbot/_internal/__pycache__/updater.cpython-311.pyc
�

E��c����dZddlZddlmZddlmZddlmZddlmZddlm	Z
ddlmZdd	l
mZeje��Zd
ejdejde
jd
dfd�Zd
ejdejdejd
dfd�Zdejdejd
ejd
dfd�Zdejdejd
ejd
dfd�Zdejdejd
ejd
dfd�ZdS)zUpdaters run at renewal�N)�
configuration)�errors)�
interfaces)�storage)�disco)�	selection)�enhancements�config�lineage�plugins�returnc�6�|jrt�d��dS	tj||��}n8#t
j$r&}t�d|��Yd}~dSd}~wwxYw|r$t|||��t|||��dSdS)asRun updaters that the plugin supports

    :param config: Configuration object
    :type config: certbot.configuration.NamespaceConfig

    :param lineage: Certificate lineage object
    :type lineage: storage.RenewableCert

    :param plugins: List of plugins
    :type plugins: certbot._internal.plugins.disco.PluginsRegistry

    :returns: `None`
    :rtype: None
    z"Skipping updaters in dry-run mode.Nz4Could not choose appropriate plugin for updaters: %s)
�dry_run�logger�debug�plug_sel�get_unprepared_installerr�Error�error�
_run_updaters�_run_enhancement_updaters)r
rr�	installer�es     �;/usr/lib/python3/dist-packages/certbot/_internal/updater.py�run_generic_updatersrs��� �~�����9�:�:�:�����5�f�g�F�F�	�	���<�������K�Q�O�O�O����������������>��g�y�&�1�1�1�!�'�9�f�=�=�=�=�=�>�>s�;�A0�
A+�+A0rc���|jrt�d��dS|js/t	|t
j��r|�|��t|||��dS)a�Helper function to run deployer interface method if supported by the used
    installer plugin.

    :param config: Configuration object
    :type config: certbot.configuration.NamespaceConfig

    :param lineage: Certificate lineage object
    :type lineage: storage.RenewableCert

    :param installer: Installer object
    :type installer: interfaces.Installer

    :returns: `None`
    :rtype: None
    z*Skipping renewal deployer in dry-run mode.N)	rrr�disable_renew_updates�
isinstancer�
RenewDeployer�renew_deploy�_run_enhancement_deployers)r
rrs   r�run_renewal_deployerr",sx��"�~�����A�B�B�B����'�(�J�y�7A�7O�-Q�-Q�(����w�'�'�'��w�	�6�:�:�:�:�:�c�z�|js1t|tj��r|�|��dSdSdS)a:Helper function to run the updater interface methods if supported by the
    used installer plugin.

    :param lineage: Certificate lineage object
    :type lineage: storage.RenewableCert

    :param installer: Installer object
    :type installer: interfaces.Installer

    :returns: `None`
    :rtype: None
    N)rrr�GenericUpdater�generic_updates)rrr
s   rrrGsR���'�/��i��!:�;�;�	/��%�%�g�.�.�.�.�.�/�/�	/�	/r#c��|jrdStjD]?}t||d��r'|drt	||d��|���@dS)a�Iterates through known enhancement interfaces. If the installer implements
    an enhancement interface and the enhance interface has an updater method, the
    updater method gets run.

    :param lineage: Certificate lineage object
    :type lineage: storage.RenewableCert

    :param installer: Installer object
    :type installer: interfaces.Installer

    :param config: Configuration object
    :type config: certbot.configuration.NamespaceConfig
    N�class�updater_function�rr	�_INDEXr�getattr�rrr
�enhs    rrrZsz�� �#�����"�A�A���i��W��.�.�	A�3�7I�3J�	A�7�G�I�s�#5�6�7�7��@�@�@��A�Ar#c��|jrdStjD]?}t||d��r'|drt	||d��|���@dS)a�Iterates through known enhancement interfaces. If the installer implements
    an enhancement interface and the enhance interface has an deployer method, the
    deployer method gets run.

    :param lineage: Certificate lineage object
    :type lineage: storage.RenewableCert

    :param installer: Installer object
    :type installer: interfaces.Installer

    :param config: Configuration object
    :type config: certbot.configuration.NamespaceConfig
    Nr(�deployer_functionr*r-s    rr!r!qsz�� �#�����"�B�B���i��W��.�.�	B�3�7J�3K�	B�8�G�I�s�#6�7�8�8��A�A�A��B�Br#)�__doc__�logging�certbotrrr�certbot._internalr�certbot._internal.pluginsr�plugin_discorr�certbot.pluginsr	�	getLogger�__name__r�NamespaceConfig�
RenewableCert�PluginsRegistryr�	Installerr"rrr!�r#r�<module>r?s���������!�!�!�!�!�!�������������%�%�%�%�%�%�;�;�;�;�;�;�;�;�;�;�;�;�(�(�(�(�(�(�	��	�8�	$�	$��>��!>�>��I^�>�".�">�>�CG�>�>�>�>�:;��!>�;��I^�;�$.�$8�;�=A�;�;�;�;�6/�7�0�/�Z�=Q�/�'�7�/�<@�/�/�/�/�&A�w�'<�A��I]�A�&3�&C�A�HL�A�A�A�A�.B��(=�B�*�J^�B�'4�'D�B�IM�B�B�B�B�B�Br#