| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/cloudinit/sources/__pycache__/ |
Upload File : |
�
쑛h� � � � d dl Z d dlZd dlZd dlmZmZmZ G d� dej � Zeej ej ffgZd� Zy)� N)�sources�
url_helper�utilc �B � � e Zd ZdZ� fd�Zddefd�Zdefd�Zd� Z � xZ
S )�DataSourceBigstep�Bigstepc �R �� t �| � |||� i | _ d| _ d| _ y )N� )�super�__init__�metadata�vendordata_raw�userdata_raw)�self�sys_cfg�distro�paths� __class__s ��E/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceBigstep.pyr zDataSourceBigstep.__init__ s+ �� �
����&�%�0���
� ������ �returnc �� � | j � }|�yt j |� }t j |j
j
� � }|d | _ |d | _ |d | _ y)NFr
r r T)
�_get_url_from_filer �readurl�json�loads�contents�decoder
r r )r �apply_filter�url�response�decodeds r � _get_datazDataSourceBigstep._get_data so � ��%�%�'���;���%�%�c�*���*�*�X�.�.�5�5�7�8���
�+��
�%�&6�7���#�N�3���r c �* � d| j � � d�S )z/Return the subplatform metadata source details.z
metadata (�))r )r s r �_get_subplatformz"DataSourceBigstep._get_subplatform# s � ��D�3�3�5�6�a�8�8r c � � t j j | j j dddd� } t j |� }|S # t $ r(}|j t j k( rY d }~y � d }~ww xY w)N�data�seed�bigstepr )
�os�path�joinr � cloud_dirr �load_text_file�IOError�errno�ENOENT)r �url_file�content�es r r z$DataSourceBigstep._get_url_from_file'