HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/cloudinit/distros/__pycache__/rhel_util.cpython-38.pyc
U

Ӈg��@s@ddlZddlmZddlmZe�e�Zd	dd�Zdd�Z	dS)
�N)�util)�SysConfFc	Cs�|sdSt|�\}}d}|��D]<\}}|dkr2q 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/dist-packages/cloudinit/distros/rhel_util.py�update_sysconfig_files$
�rcCs@d}zt�|���}d}Wntk
r2g}YnX|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