Server IP : 15.235.198.142 / Your IP : 216.73.216.190 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 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 : |
� �f� � � � 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'