HEX
Server: LiteSpeed
System: Linux ws4.angoweb.net 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: tswangoe (2287)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
Upload Files
File: //usr/lib/python3.9/site-packages/certbot/_internal/__pycache__/updater.cpython-39.pyc
a

}|�g��@s�dZddlZddlmZddlmZddlmZddlmZddlm	Z
ddlmZdd	l
mZe�e�Zejeje
jdd
�dd�Zejejejdd
�dd�Zejejejdd�dd�Zejejejdd�dd�Zejejejdd�dd�ZdS)zUpdaters run at renewal�N)�
configuration)�errors)�
interfaces)�storage)�disco)�	selection)�enhancements)�config�lineage�plugins�returnc
Csz|jrt�d�dSzt�||�}Wn4tjyX}zt�d|�WYd}~dSd}~00|rvt|||�t	|||�dS)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_selZget_unprepared_installerr�Error�error�
_run_updaters�_run_enhancement_updaters)r	r
r�	installer�e�r�=/usr/lib/python3.9/site-packages/certbot/_internal/updater.py�run_generic_updaterss
r)r	r
rrcCs@|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: 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)	r
rr�disable_renew_updates�
isinstancerZ
RenewDeployerZrenew_deploy�_run_enhancement_deployers)r	r
rrrr�run_renewal_deployer,s

�
r)r
rr	rcCs |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.Installer

    :returns: `None`
    :rtype: None
    N)rrrZGenericUpdaterZgeneric_updates)r
rr	rrrrGs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 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�classZupdater_function�rrZ_INDEXr�getattr�r
rr	ZenhrrrrZs

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.Installer

    :param config: Configuration object
    :type config: certbot.configuration.NamespaceConfig
    NrZdeployer_functionrr!rrrrqs

r)�__doc__ZloggingZcertbotrrrZcertbot._internalrZcertbot._internal.pluginsrZplugin_discorrZcertbot.pluginsrZ	getLogger�__name__rZNamespaceConfigZ
RenewableCertZPluginsRegistryrZ	Installerrrrrrrrr�<module>s0
�����