403Webshell
Server IP : 3.7.136.76  /  Your IP : 216.73.216.142
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-39-148 7.0.0-1010-aws #10~24.04.1-Ubuntu SMP PREEMPT Mon Jul 27 17:41:33 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /snap/core22/2987/lib/python3/dist-packages/cloudinit/sources/azure/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

��i��@s�ddlZddlmZmZddlmZddlmZddlmZm	Z	ddl
mZmZe�
e�Zdeejfdd	�Zd
edefdd�Zd
eedefdd�ZdS)�N)�datetime�timezone)�Optional)�version)�handlers�instantiated_handler_registry)�errors�identity�returnc
Csrtj�d�}t|tj�sdS|jtjjkr7zt�	�|_
W|Sty6}z
t�
d|�WYd}~|Sd}~ww|S)z@Get instantiated KVP telemetry handler, setting vm_id if needed.�	telemetryNzFailed to query Azure vm_id: %s)r�registered_items�get�
isinstancer�HyperVKvpReportingHandler�_vm_id�	ZERO_GUIDr	�query_vm_id�vm_id�	Exception�LOG�debug)�kvp_handler�e�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)rrr�	write_key)rrrrr�report_via_kvp"s
rrcCs<t�ddt����dt�tj�����d|��g�}t	|�S)Nzresult=successzagent=Cloud-Init/z
timestamp=zvm_id=)
r�
encode_reportr�version_stringr�nowr�utc�	isoformatr)rrrrr�report_success_to_host-s��	r%)�loggingrr�typingr�	cloudinitr�cloudinit.reportingrr�cloudinit.sources.azurerr	�	getLogger�__name__rrr�str�boolrr%rrrr�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit