| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/cloudinit/sources/__pycache__/ |
Upload File : |
a
'�Dg� � @ s� d dl Z d dlmZ d dlmZmZmZmZmZm Z d dl
mZ d dlm
Z
e �e�ZdZded iZd Zd
Zd
ZG dd� dej�Zd
d� Zdd� Zddd�ZeejffgZdS )� N)�
exceptions)�dmi�net�sources�subp�
url_helper�util)�NoDHCPLeaseError)�EphemeralDHCPv4zhttp://169.254.169.254/api/v1�metadata_urlz /metadata� � c sX e Zd ZdZdd� Zedd�� fdd�Zdd � Zd
d� Ze dd
� �Z
edd� �Z� Z
S )�DataSourceNWCS�NWCSc C s� t j�| |||� || _t� | _t�t�|ddgi �t g�| _
| j
d | _| j
�dt
�| _| j
�dt�| _| j
�dt�| _t j| _t j| _d | _d S )NZ
datasourcer r �retries�timeout�
wait_retry)r �
DataSource�__init__�distro�dict�metadatar Z
mergemanydictZget_cfg_by_path�BUILTIN_DS_CONFIGZds_cfg�metadata_address�get�
MD_RETRIESr �
MD_TIMEOUTr �
MD_WAIT_RETRYr �UNSET�_network_configZDSMODE_NETWORKZdsmode�
metadata_full)�selfZsys_cfgr �paths� r# �D/usr/lib/python3.9/site-packages/cloudinit/sources/DataSourceNWCS.pyr s ��zDataSourceNWCS.__init__N)�ci_pkl_version�returnc s t � �|� | jstj| _d S �N)�super� _unpickler r r )r! r% �� __class__r# r$ r) 0 s zDataSourceNWCS._unpicklec C sv | � � }|d u rtd��|| _|d | jd<