HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/cloudinit/distros/__pycache__/rhel_util.cpython-39.pyc
a

��`��@sDddlmZddlmZddlmZe�e�Zd
dd�Z	dd�Z
d	S)�)�SysConf)�log)�utilFc	Cs�|sdSt|�\}}d}|��D]<\}}|dur2q t|�}t|�dkrL|sLq |||<|d7}q |r�t|�g}|s�|�dt���t�|d�|�dd�dS)Nr��
i�)	�read_sysconfig_file�items�str�len�insertr�make_header�
write_file�join)	�fnZadjustmentsZallow_empty�exists�contentsZ
updated_am�k�v�lines�r�=/usr/lib/python3/dist-packages/cloudinit/distros/rhel_util.py�update_sysconfig_files$
�rcCs>d}zt�|���}d}Wnty0g}Yn0|t|�fS)NFT)r�	load_file�
splitlines�IOErrorr)rrrrrrr+s
rN)F)Z"cloudinit.distros.parsers.sys_confr�	cloudinitr�loggingr�	getLogger�__name__�LOGrrrrrr�<module>s