HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.52.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/lib/python3.9/site-packages/cloudinit/distros/__pycache__/rhel_util.cpython-39.pyc
a

'�Dg��@s@ddlZddlmZddlmZe�e�Zd	dd�Zdd�Z	dS)
�N)�util)�SysConfFc	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�insertrZmake_headerZ
write_file�join)	�fnZadjustmentsZallow_empty�exists�contentsZ
updated_am�k�v�lines�r�?/usr/lib/python3.9/site-packages/cloudinit/distros/rhel_util.py�update_sysconfig_files$
�rcCs>d}zt�|���}d}Wnty0g}Yn0|t|�fS)NFT)rZload_text_file�
splitlines�IOErrorr)rr
rrrrr+s
r)F)
ZloggingZ	cloudinitrZ"cloudinit.distros.parsers.sys_confrZ	getLogger�__name__ZLOGrrrrrr�<module>s