| Server IP : 3.96.16.70 / Your IP : 216.73.216.15 Web Server : Apache System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3.9/site-packages/cloudinit/sources/helpers/__pycache__/ |
Upload File : |
a
�½bf� � @ sb d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl
mZ d dlmZ d dl
mZ d dlmZmZ d dlmZ d dlmZ d dlmZmZmZmZmZmZ d d lmZ d d
lm Z e�!e"�Z#dZ$dZ%d
Z&dZ'dZ(dZ)dZ*ej+dddd�Z,dZ-dd� Z.dd� Z/e.dd� �Z0e.dd� �Z1dd�e2ej3d �d!d"�Z4d#d$� Z5e.e d% fd&d'��Z6e.d(d)� �Z7ed*d+� �Z8d,d-� Z9e.dd.�e2e:ee2 ej;d/�d0d1��Z<e2e2e2e=d2�d3d4�Z>G d5d6� d6�Z?G d7d8� d8e@�ZAG d9d:� d:�ZBG d;d<� d<�ZCG d=d>� d>�ZDG d?d@� d@�ZEe.dIe2eee2 ee2 dA�dBdC��ZFe.dJe2ee2 dD�dEdF��ZGdGdH� ZHdS )K� N)�contextmanager)�datetime)�ENOENT)�List�Optional)�ElementTree)�escape)�distros�subp�
temp_utils�
url_helper�util�version)�events)�CFG_BUILTINz
168.63.129.16�boot-telemetryzsystem-infoZ
diagnostic�
compressedi � z'/run/cloud-init/log_pushed_to_kvp_indexzazure-dsz initialize reporter for azure dsT)�name�descriptionZreporting_enabledz�The VM encountered an error during deployment. Please visit https://aka.ms/linuxprovisioningerror for more information on remediation.c s � fdd�}|S )Nc sF t j� j� jtd�� � | i |��W d � S 1 s80 Y d S )N�r r �parent)r �ReportEventStack�__name__�azure_ds_reporter)�args�kwargs��func� �C/usr/lib/python3.9/site-packages/cloudinit/sources/helpers/azure.py�impl6 s �z)azure_ds_telemetry_reporter.<locals>.implr )r r r r r �azure_ds_telemetry_reporter5 s r! c C s\ | |krdS d
dd�}|� d�}d�||d �||d �||d �|d |d g�}| |kS )z�
Azure stores the instance ID with an incorrect byte ordering for the
first parts. This corrects the byte order such that it is consistent with
that returned by the metadata service.
F� c S s( dd� t �| d�D �}|�� d�|�S )Nc S s g | ]}|�qS r r )�.0Zbyter r r �
<listcomp>K � z<is_byte_swapped.<locals>.swap_bytestring.<locals>.<listcomp>r"