Current Dir: /snap/core22/2955/usr/lib/python3/dist-packages/cloudinit/distros/__pycache__/

[FILE] almalinux.cpython-310.pyc [ edit | delete | rename ]
[FILE] alpine.cpython-310.pyc [ edit | delete | rename ]
[FILE] amazon.cpython-310.pyc [ edit | delete | rename ]
[FILE] aosc.cpython-310.pyc [ edit | delete | rename ]
[FILE] arch.cpython-310.pyc [ edit | delete | rename ]
[FILE] azurelinux.cpython-310.pyc [ edit | delete | rename ]
[FILE] bsd.cpython-310.pyc [ edit | delete | rename ]
[FILE] bsd_utils.cpython-310.pyc [ edit | delete | rename ]
[FILE] centos.cpython-310.pyc [ edit | delete | rename ]
[FILE] cloudlinux.cpython-310.pyc [ edit | delete | rename ]
[FILE] cos.cpython-310.pyc [ edit | delete | rename ]
[FILE] debian.cpython-310.pyc [ edit | delete | rename ]
[FILE] dragonflybsd.cpython-310.pyc [ edit | delete | rename ]
[FILE] eurolinux.cpython-310.pyc [ edit | delete | rename ]
[FILE] fedora.cpython-310.pyc [ edit | delete | rename ]
[FILE] freebsd.cpython-310.pyc [ edit | delete | rename ]
[FILE] gentoo.cpython-310.pyc [ edit | delete | rename ]
[FILE] mariner.cpython-310.pyc [ edit | delete | rename ]
[FILE] miraclelinux.cpython-310.pyc [ edit | delete | rename ]
[FILE] netbsd.cpython-310.pyc [ edit | delete | rename ]
[FILE] networking.cpython-310.pyc [ edit | delete | rename ]
[FILE] openbsd.cpython-310.pyc [ edit | delete | rename ]
[FILE] OpenCloudOS.cpython-310.pyc [ edit | delete | rename ]
[FILE] openeuler.cpython-310.pyc [ edit | delete | rename ]
[FILE] openmandriva.cpython-310.pyc [ edit | delete | rename ]
[FILE] opensuse-leap.cpython-310.pyc [ edit | delete | rename ]
[FILE] opensuse-microos.cpython-310.pyc [ edit | delete | rename ]
[FILE] opensuse-tumbleweed.cpython-310.pyc [ edit | delete | rename ]
[FILE] opensuse.cpython-310.pyc [ edit | delete | rename ]
[FILE] photon.cpython-310.pyc [ edit | delete | rename ]
[FILE] raspberry_pi_os.cpython-310.pyc [ edit | delete | rename ]
[FILE] rhel.cpython-310.pyc [ edit | delete | rename ]
[FILE] rhel_util.cpython-310.pyc [ edit | delete | rename ]
[FILE] rocky.cpython-310.pyc [ edit | delete | rename ]
[FILE] sle-micro.cpython-310.pyc [ edit | delete | rename ]
[FILE] sles.cpython-310.pyc [ edit | delete | rename ]
[FILE] sle_hpc.cpython-310.pyc [ edit | delete | rename ]
[FILE] suse.cpython-310.pyc [ edit | delete | rename ]
[FILE] TencentOS.cpython-310.pyc [ edit | delete | rename ]
[FILE] ubuntu.cpython-310.pyc [ edit | delete | rename ]
[FILE] ug_util.cpython-310.pyc [ edit | delete | rename ]
[FILE] virtuozzo.cpython-310.pyc [ edit | delete | rename ]
[FILE] __init__.cpython-310.pyc [ edit | delete | rename ]

Viewing: /snap/core22/2955/usr/lib/python3/dist-packages/cloudinit/distros/__pycache__/bsd_utils.cpython-310.pyc

o

��i��@s4ddlZddlmZdd�Zd
dd�Zd
dd	�ZdS)�N)�utilcCs,|d|dkr|ddvr|dd�S|S)Nr���)�"�'��)�valuerr�=/usr/lib/python3/dist-packages/cloudinit/distros/bsd_utils.py�_unquotesr
�/etc/rc.confcCsDd�|�}t�|���D]}|�|�r|�|d�}t|�SqdS)Nz{}=�)�formatr�load_text_file�
splitlines�
startswith�replacer
)�key�fn�
key_prefix�linerrrr	�get_rc_config_values

��rc
Cs�g}d}t�|�}t�|�}|��D]&}d|vr3|�dd�\}}||kr(|}d}|�d�||g��q|�|�q|sE|�d�||g��d�|�d}	|	|krXt�||	�dSdS)NF�=rT�
)	�shlex�quoterrr�split�append�join�
write_file)
rrr�lines�done�original_contentr�k�v�new_contentrrr	�set_rc_config_values$

�r%)r)r�	cloudinitrr
rr%rrrr	�<module>s



Upload File: