|
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 : |
U
�]r � @ sx d Z ddlZddlmZ ddlmZ ddlmZ ddlm m
Z
e�e�Z
dd� Zdd � Zd
d� Zdd
� Zdd� ZdS )zUpdaters run at renewal� N)�errors)�
interfaces)� selectionc
C s| | j rt�d� dS zt�| |�}W n6 tjk
rZ } zt�d|� W Y �dS d}~X Y nX |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
r c C s@ | j rt�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) r r r �disable_renew_updates�
isinstancer Z
RenewDeployerZrenew_deploy�_run_enhancement_deployers)r r
r r r r �run_renewal_deployer'