%PDF- %PDF-
Direktori : /lib/python3/dist-packages/cloudinit/sources/__pycache__/ |
Current File : //lib/python3/dist-packages/cloudinit/sources/__pycache__/DataSourceBigstep.cpython-312.pyc |
� ���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'