403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.190
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/cloudinit/sources/azure/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/cloudinit/sources/azure/__pycache__/kvp.cpython-312.pyc
�

�fX����ddlZddlmZddlmZddlmZddlmZmZddl	m
Z
mZeje
�Zdeejfd�Zd	edefd
�Zde
j(defd�Zdefd
�Zy)�N)�datetime)�Optional)�version)�handlers�instantiated_handler_registry)�errors�identity�returnc�z�tjjd�}t|tj
�sy|S)z'Get instantiated KVP telemetry handler.�	telemetryN)r�registered_items�get�
isinstancer�HyperVKvpReportingHandler)�kvp_handlers �=/usr/lib/python3/dist-packages/cloudinit/sources/azure/kvp.py�get_kvp_handlerrs6��/�@�@�D�D���K��k�8�#E�#E�F�����reportc�l�t�}|�tjd�y|jd|�y)z/Report to host via PROVISIONING_REPORT KVP key.z.KVP handler not enabled, skipping host report.F�PROVISIONING_REPORTT)r�LOG�debug�	write_key)rrs  r�report_via_kvprs4��!�#�K����	�	�B�C�����/��8�r�errorc�4�t|j��S)N)r�as_encoded_report)rs r�report_failure_to_hostr&s���%�1�1�3�4�4rc� �	tj�}tjddtj���dtj�j���d|��g�}t|�S#t$r}d|��}Yd}~�rd}~wwxYw)Nzfailed to read vm id: zresult=successzagent=Cloud-Init/z
timestamp=zvm_id=)r	�query_vm_id�	Exceptionr�
encode_reportr�version_stringr�utcnow�	isoformatr)�vm_id�id_errorrs   r�report_success_to_hostr)*s���6��$�$�&���
!�
!���� 6� 6� 8�9�:�����*�4�4�6�7�8��U�G��		
��F��&�!�!���6�(���5���6�s�A5�5	B
�>B�B
)�loggingr�typingr�	cloudinitr�cloudinit.reportingrr�cloudinit.sources.azurerr	�	getLogger�__name__rrr�str�boolr�ReportableErrorrr)�rr�<module>r5sz��
����G�4��g����!����(�"D�"D�E���3��4��5�&�"8�"8�5�T�5�"��"r

Youez - 2016 - github.com/yon3zu
LinuXploit