Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/cloudinit/sources/azure/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

}��fX�@s�ddlZddlmZddlmZddlmZddlmZmZddl	m
Z
mZe�e
�Zdeejfdd	�Zd
edefdd�Zd
e
jdefdd�Zdefdd�ZdS)�N)�datetime)�Optional)�version)�handlers�instantiated_handler_registry)�errors�identity�returncCs tj�d�}t|tj�sdS|S)z'Get instantiated KVP telemetry handler.�	telemetryN)r�registered_items�get�
isinstancer�HyperVKvpReportingHandler)�kvp_handler�r�=/usr/lib/python3/dist-packages/cloudinit/sources/azure/kvp.py�get_kvp_handlers�r�reportcCs,t�}|durt�d�dS|�d|�dS)z/Report to host via PROVISIONING_REPORT KVP key.Nz.KVP handler not enabled, skipping host report.F�PROVISIONING_REPORTT)r�LOG�debug�	write_key)rrrrr�report_via_kvps
r�errorcCst|���S)N)r�as_encoded_report)rrrr�report_failure_to_host&src
Cstzt��}Wnty}zd|��}WYd}~nd}~wwt�ddt����dt���	���d|��g�}t
|�S)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_errorrrrr�report_success_to_host*s����	r$)�loggingr�typingr�	cloudinitr�cloudinit.reportingrr�cloudinit.sources.azurerr�	getLogger�__name__rrr�str�boolr�ReportableErrorrr$rrrr�<module>s


Spamworldpro Mini