관리-도구
편집 파일: cc_bootcmd.cpython-39.opt-1.pyc
a ����'�Dg�����������������������@���s����U�d�Z�ddlZddlmZmZmZ�ddlmZ�ddlm Z �ddl mZ�ddlm Z �e�e�Ze Zdd ge d gd�Zeed<�ee eedd �dd�ZdS�)z:Bootcmd: run arbitrary commands early in the boot process.�����N)�subp� temp_utils�util)�Cloud)�Config)� MetaSchema)� PER_ALWAYSZ cc_bootcmd�all�bootcmd)�idZdistros� frequencyZactivate_by_schema_keys�meta)�name�cfg�cloud�args�returnc����������� ������C���s��d|vrt��d|���d�S�tjdd���}z*t�|d��}|�t�|���|����W�n8�t y��}�z t� t�dt|�����W�Y�d�}~n d�}~0�0�z6|���}|r�dt|�ini�}t j d|jg|dd ��W�n"�t y����t� t�d |�����Y�n0�W�d�����n1�s�0����Y��d�S�)Nr ���z;Skipping module named %s, no 'bootcmd' key in configurationz.sh)�suffixzFailed to shellify bootcmd: %sZINSTANCE_IDz/bin/shF)Z update_envZcapturezFailed to run bootcmd module %s)�LOG�debugr���ZExtendedTemporaryFiler���Zshellify�writeZencode_text�flush� ExceptionZlogexc�strZget_instance_idr���r���) r���r���r���r���ZtmpfZcontent�eZiid�env��r����?/usr/lib/python3.9/site-packages/cloudinit/config/cc_bootcmd.py�handle!���s(�����r���)�__doc__ZloggingZ cloudinitr���r���r���Zcloudinit.cloudr���Zcloudinit.configr���Zcloudinit.config.schemar���Zcloudinit.settingsr���Z getLogger�__name__r���r���r ����__annotations__r����listr���r���r���r���r����<module> ���s��� �