AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.0   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /snap/core20/2599/lib/python3/dist-packages/cloudinit/sources/azure/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /snap/core20/2599/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


Anon7 - 2022
AnonSec Team