| Server IP : 159.223.102.202 / Your IP : 216.73.216.195 Web Server : nginx/1.26.0 System : Linux Gen1-cloudpanel2ubuntu2404-1vcpu-1gb-nyc1-01 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 User : albasshbotta ( 1021) PHP Version : 8.2.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/cloudinit/sources/azure/__pycache__/ |
Upload File : |
�
�f� � � � d dl Z d dlmZ d dlmZmZmZmZ d dlZd dlm Z d dl
mZ d dlm
Z
mZ e j e� ZdZ G d� d � Zd
dd�d
ededededef
d�Zd
ededefd�Z ddedee defd�Zdefd�Zy)� N)�time)�Dict�Optional�Type�Union)�util)�report_diagnostic_event)�UrlError�readurlzhttp://169.254.169.254/metadatac �L � e Zd ZdZddddd�dedee dee d dfd
�Zd efd�Z y)�ReadUrlRetryHandleraF Manager for readurl retry behavior using exception_callback().
:param logging_backoff: Backoff to limit logging.
:param max_connection_errors: Number of connection errors to retry on.
:param retry_codes: Set of http codes to retry on.
:param retry_deadline: Optional time()-based deadline to retry until.
� �?N)� � � i� ��logging_backoff�max_connection_errors�retry_codes�retry_deadliner r r �returnc �f � || _ || _ || _ || _ d| _ d| _ d | _ y )Nr r )r r r r �_logging_threshold�_request_count�_last_error)�selfr r r r s �>/usr/lib/python3/dist-packages/cloudinit/sources/azure/imds.py�__init__zReadUrlRetryHandler.__init__ s<