%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/cloudinit/config/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/cloudinit/config/__pycache__/cc_phone_home.cpython-312.pyc

�

���f��
���UdZddlZddlmZmZmZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZgd	�Zd
e
gedgd�Zeed
<ej&e�Zdede	dededdf
d�Zy)zPhone Home: Post data to url�N)�	templater�
url_helper�util)�Cloud)�Config)�
MetaSchema)�ALL_DISTROS)�PER_INSTANCE)�pub_key_rsa�
pub_key_ecdsa�pub_key_ed25519�instance_id�hostname�fqdn�
cc_phone_home�
phone_home)�id�distros�	frequency�activate_by_schema_keys�meta�name�cfg�cloud�args�returnc	���t|�dk7rtj|d�}n d|vrtj	d|�y|d}d|vrtjd|�y|d}|j
dd�}|j
d�}	t|�}|dk(rt}|j�|j�j|jd��jd
�}dddd�}	|	j�D]\}
}	tj |�||
<� i}|D]*}
|
|vr	||
||
<�d||
<tjd|
��,i}|j�D]\}
}|�d||
<�t%|�||
<�d|di}t'j(||�}	t+j,|||dz
dtj.|j0���y#ttf$r!d	}tjtd
|�Y��qwxYw#t"$rtjtd|�Y��5wxYw#t"$rtjtd||�YywxYw)Nrrz=Skipping module named %s, no 'phone_home' configuration found�urlzFSkipping module named %s, no 'url' found in 'phone_home' configuration�post�all�tries�
z?Configuration entry 'tries' is not an integer, using %s insteadT)r)rrrz/etc/ssh/ssh_host_rsa_key.pubz/etc/ssh/ssh_host_ecdsa_key.pubz!/etc/ssh/ssh_host_ed25519_key.pub)rrr
z1%s: failed to open, can not phone home that data!z=Requested key %s from 'post' configuration list not availablezN/A�INSTANCE_IDr��)�data�retries�sec_between�ssl_detailsz0Failed to post phone home data to %s in %s tries)�lenr�	read_conf�LOG�debug�warning�get�int�
ValueError�	TypeError�logexc�
POST_LIST_ALL�get_instance_id�get_hostnamer�items�load_text_file�	Exception�strr�
render_stringr�read_file_or_url�fetch_ssl_details�paths)rrrr�ph_cfgr�	post_listr!�all_keys�pubkeys�n�path�submit_keys�k�real_submit_keys�v�
url_paramss                 �@/usr/lib/python3/dist-packages/cloudinit/config/cc_phone_home.py�handlerK1s���
�4�y�A�~�����Q��(���s�"��I�I�6��
�

��\�"���F�����
;��	
�
	�
��-�C��
�
�6�5�)�I��J�J�w��E�
��E�
���E��!�	��,�,�.��&�&�(�1�1��"�"��"�-�6�6��H�7�:�>��G��=�=�?����4�	��-�-�d�3�H�Q�K���K�
�	����=�%�a�[�K��N�!�K��N��K�K�4��
�	����!�!�#�)���1��9�"'��Q��"%�a�&��Q��	)�	�x�
�.��J��
!�
!�#�z�
2�C�
��#�#��!��A�I���.�.�u�{�{�;�	
��s
�	�"�
�������M��	
�
��4�	��K�K��H�$�
�	��L�
�����C�S�%�	
�
�s6�G�H�:H7�,H	�H	�$H4�3H4�7%I�I)�__doc__�logging�	cloudinitrrr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemar�cloudinit.distrosr	�cloudinit.settingsr
r4r�__annotations__�	getLogger�__name__r,r:�listrK��rJ�<module>rZs���#��1�1�!�#�.�)�+��
���}�� ,�~�	��j���g����!��]
��]
�6�]
�%�]
�t�]
��]
rY

Zerion Mini Shell 1.0