name : cc_runcmd.cpython-39.pyc
a

'�Dgh�@s�UdZddlZddlZddlmZddlmZddlmZddl	m
Z
ddlmZddl
mZd	eged
gd�Ze
ed<e�e�Zeeeedd
�dd�ZdS)zERuncmd: run arbitrary commands at rc.local with output to the console�N)�util)�Cloud)�Config)�
MetaSchema)�ALL_DISTROS)�PER_INSTANCEZ	cc_runcmd�runcmd)�idZdistrosZ	frequencyZactivate_by_schema_keys�meta)�name�cfg�cloud�args�returnc
Cs�d|vrt�d|�dStj�|�d�d�}|d}zt�|�}t�||d�Wn8t	y�}z t
|�d�||���WYd}~n
d}~00dS)Nrz:Skipping module named %s, no 'runcmd' key in configurationZscriptsi�z"Failed to shellify {} into file {})�LOG�debug�os�path�joinZ	get_ipathrZshellifyZ
write_file�	Exception�type�format)rrr
rZout_fn�cmdZcontent�e�r�>/usr/lib/python3.9/site-packages/cloudinit/config/cc_runcmd.py�handle%s�
r)�__doc__ZloggingrZ	cloudinitrZcloudinit.cloudrZcloudinit.configrZcloudinit.config.schemarZcloudinit.distrosrZcloudinit.settingsrr
�__annotations__Z	getLogger�__name__r�str�listrrrrr�<module>	s	�


© 2025 Cubjrnet7