KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /lib/python3/dist-packages/certbot/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/certbot/__pycache__/updater.cpython-38.pyc
U

�]r�@sxdZddlZddlmZddlmZddlmZddlm	m
Z
e�e�Z
dd�Zdd	�Zd
d�Zdd
�Zdd�ZdS)zUpdaters run at renewal�N)�errors)�
interfaces)�	selectionc
Cs||jrt�d�dSzt�||�}Wn6tjk
rZ}zt�d|�WY�dSd}~XYnX|rxt|||�t	|||�dS)a@Run updaters that the plugin supports

    :param config: Configuration object
    :type config: interfaces.IConfig

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

    :param plugins: List of plugins
    :type plugins: `list` of `str`

    :returns: `None`
    :rtype: None
    z"Skipping updaters in dry-run mode.Nz4Could not choose appropriate plugin for updaters: %s)
�dry_run�logger�debug�plug_selZget_unprepared_installerr�ErrorZwarning�
_run_updaters�_run_enhancement_updaters)�config�lineage�plugins�	installer�e�r�1/usr/lib/python3/dist-packages/certbot/updater.py�run_generic_updaterss
rcCs@|jrt�d�dS|js0t|tj�r0|�|�t|||�dS)a�Helper function to run deployer interface method if supported by the used
    installer plugin.

    :param config: Configuration object
    :type config: interfaces.IConfig

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

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

    :returns: `None`
    :rtype: None
    z*Skipping renewal deployer in dry-run mode.N)	rrr�disable_renew_updates�
isinstancerZ
RenewDeployerZrenew_deploy�_run_enhancement_deployers)rr
rrrr�run_renewal_deployer's

�
rcCs |jst|tj�r|�|�dS)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.IInstaller

    :returns: `None`
    :rtype: None
    N)rrrZGenericUpdaterZgeneric_updates)r
rrrrrr
@s
r
cCsB|jr
dStjD],}t||d�r|drt||d�|�qdS)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.IInstaller

    :param config: Configuration object
    :type config: interfaces.IConfig
    N�classZupdater_function�r�enhancementsZ_INDEXr�getattr�r
rrZenhrrrrQs

rcCsB|jr
dStjD],}t||d�r|drt||d�|�qdS)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.IInstaller

    :param config: Configuration object
    :type config: interfaces.IConfig
    NrZdeployer_functionrrrrrrgs

r)�__doc__ZloggingZcertbotrrZcertbot.pluginsrrZcertbot.plugins.enhancementsrrZ	getLogger�__name__rrrr
rrrrrr�<module>s


Anon7 - 2021