HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //lib/python3.6/site-packages/cloudinit/sources/azure/__pycache__/kvp.cpython-36.pyc
3

\�meX�@s�ddlZddlmZddlmZddlmZddlmZmZddl	m
Z
mZeje
�Zeejd�dd	�Zeed
�dd�Ze
jed
�dd�Zed�dd�ZdS)�N)�datetime)�Optional)�version)�handlers�instantiated_handler_registry)�errors�identity)�returncCs tjjd�}t|tj�sdS|S)z'Get instantiated KVP telemetry handler.Z	telemetryN)rZregistered_items�get�
isinstancer�HyperVKvpReportingHandler)�kvp_handler�r�/usr/lib/python3.6/kvp.py�get_kvp_handlers
r)�reportr	cCs,t�}|dkrtjd�dS|jd|�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)rr
rrr�report_via_kvps
r)�errorr	cCst|j��S)N)rZas_encoded_report)rrrr�report_failure_to_host&srcCsrytj�}Wn,tk
r8}zd|��}WYdd}~XnXtjddtj���dtj�j	���d|��g�}t
|�S)Nzfailed to read vm id: zresult=successzagent=Cloud-Init/z
timestamp=zvm_id=)rZquery_vm_id�	ExceptionrZ
encode_reportrZversion_stringrZutcnowZ	isoformatr)Zvm_idZid_errorrrrr�report_success_to_host*sr)ZloggingrZtypingrZ	cloudinitrZcloudinit.reportingrrZcloudinit.sources.azurerrZ	getLogger�__name__rrr�str�boolrZReportableErrorrrrrrr�<module>s