/usr/lib/python3/dist-packages/cloudinit/sources/azure/__pycache__
NameSizeModeActions
errors.cpython-310.pyc90470644editdlrm
identity.cpython-310.pyc30240644editdlrm
imds.cpython-310.pyc53650644editdlrm
kvp.cpython-310.pyc14750644editdlrm
__init__.cpython-310.pyc1590644editdlrm
Edit: /usr/lib/python3/dist-packages/cloudinit/sources/azure/__pycache__/kvp.cpython-310.pyc (1475B)
o thu@sddlZddlmZmZddlmZddlmZddlmZm Z ddl m Z e e Zdeejfdd Zd edefd d Zd eedefddZdS)N)datetimetimezone)Optional)version)handlersinstantiated_handler_registry)errorsreturncCs tjd}t|tjsdS|S)z'Get instantiated KVP telemetry handler. telemetryN)rregistered_itemsget isinstancerHyperVKvpReportingHandler) kvp_handlerr=/usr/lib/python3/dist-packages/cloudinit/sources/azure/kvp.pyget_kvp_handlers  rreportcCs,t}|durtddS|d|dS)z/Report to host via PROVISIONING_REPORT KVP key.Nz.KVP handler not enabled, skipping host report.FPROVISIONING_REPORTT)rLOGdebug write_key)rrrrrreport_via_kvps   rvm_idcCs<tddtdttjd|g}t |S)Nzresult=successzagent=Cloud-Init/z timestamp=zvm_id=) r encode_reportrversion_stringrnowrutc isoformatr)rrrrrreport_success_to_host&s  r)loggingrrtypingr cloudinitrcloudinit.reportingrrcloudinit.sources.azurer getLogger__name__rrrstrboolrrrrrrs