0x1949 Team - FAZEMRX - MANAGER
Edit File: azurelinux.cpython-310.pyc
o ���fe � @ sT d dl Z d dlmZmZ d dlmZ d dlmZ e �e �Z dZG dd� dej�ZdS )� N)�subp�util)�rhel)�CLOUDINIT_NETPLAN_FILEa7 # This file is generated from information provided by the datasource. Changes # to it will not persist across an instance reboot. To disable cloud-init's # network configuration capabilities, write a file # /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following: # network: {config: disabled} c s* e Zd ZdZ� fdd�Zddd�Z� ZS )�Distroz/usr/libc sb t � �|||� d| _d| _d| _d| _dg| _dti| _| j| jd�| jd t dd �d �| _ d S )N� azurelinuxz/etc/systemd/network/z/etc/locale.confz/etc/systemd/resolved.conf� systemctl�netplan)�resolv_conf_fn�network_conf_dir�True)�netplan_path�netplan_header�postcmds)�networkdr )�super�__init__�osfamilyr �systemd_locale_conf_fn�resolve_conf_fn�init_cmdr �network_conf_fn�NETWORK_FILE_HEADER�renderer_configs)�self�name�cfg�paths�� __class__� �>/usr/lib/python3/dist-packages/cloudinit/distros/azurelinux.pyr s ���zDistro.__init__Nc C s� |d u rg }t �d�rt�d� dg}nt�d� dg}|�d� |r.t|t�r.|�|� n|r:t|t�r:|�|� |�|� t � d|�}|�|� t j |dd� d S ) N�dnfz Using DNF for package managementz!Using TDNF for package management�tdnfz-yz%s-%sF)�capture)r �which�LOG�debug�append� isinstance�str�list�extendr �expand_package_list)r �command�args�pkgs�cmd�pkglistr r r! �package_command1 s zDistro.package_command)NN)�__name__� __module__�__qualname__�usr_lib_execr r3 � __classcell__r r r r! r s r ) �logging� cloudinitr r �cloudinit.distrosr �cloudinit.net.netplanr � getLoggerr4 r&