????
Current Path : /proc/self/root/lib/python3.6/site-packages/certbot/plugins/__pycache__/ |
Current File : //proc/self/root/lib/python3.6/site-packages/certbot/plugins/__pycache__/dns_common.cpython-36.pyc |
3 گa�5 � @ sT d Z ddlZddlZddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddlm Z dd lmZ ddlZdd l mZ ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ eje�ZG dd� dej ej!ej"d�Z#G dd� d�Z$e%dd�dd�Z&e%dd�dd�Z'e%ee% d�dd �Z(dS )!z*Common code for DNS Authenticator Plugins.� N)�sleep)�Callable)�Iterable)�List)�Mapping)�Optional)�Type)� challenges)�achallenges)� configuration)�errors)� interfaces)� filesystem)�os)�ops)�util)�commonc s� e Zd ZdZejedd�� fdd�Zed2e d3 e dd�d d ��Zee j ed�dd �Zeeeej d�dd�Zdd�dd�Zed�dd�Zee j eej d�dd�Zee j dd�dd�Zejdd�dd��Zejeeedd�dd��Zejeeedd�d d!��Zeedd"�d#d$�Zd4eee e egdf dd%�d&d'�Z!d5eee e"eef e e d(gdf d(d)�d*d+�Z#e$eed,�d-d.��Z%e$d6ee e egdf ed/�d0d1��Z&� Z'S )7�DNSAuthenticatorz!Base class for DNS AuthenticatorsN)�config�name�returnc s t � j||� d| _d S )NF)�super�__init__�_attempt_cleanup)�selfr r )� __class__� � /usr/lib/python3.6/dns_common.pyr s zDNSAuthenticator.__init__� .)�add�default_propagation_secondsr c C s |d|t dd� d S )Nzpropagation-secondszjThe number of seconds to wait for DNS to propagate before asking the ACME server to verify the DNS record.)�default�type�help)�int)�clsr r r r r �add_parser_arguments$ s z%DNSAuthenticator.add_parser_arguments)�failed_achallsr c C s( | j d�}dj| j||dkr dndd�S )z,See certbot.plugins.common.Plugin.auth_hint.zpropagation-secondsz�The Certificate Authority failed to verify the DNS TXT records created by --{name}. Ensure the above domains are hosted by this DNS provider, or try increasing --{name}-propagation-seconds (currently {secs} second{suffix}).� �s� )r Zsecs�suffix)�conf�formatr )r r'