File: //lib/python3/dist-packages/cloudinit/sources/helpers/__pycache__/hetzner.cpython-312.pyc
�
쑛h^ � �$ � d dl mZmZ dd�Zdd�Zy)� )�
url_helper�utilc �� � t j | |||�� }|j � st d| z � �t j
|j j � t t f�� S )N��timeout�sec_between�retrieszunable to read metadata at %s)�allowed)
r �readurl�ok�RuntimeErrorr � load_yaml�contents�decode�dict�list��urlr r r �responses �C/usr/lib/python3/dist-packages/cloudinit/sources/helpers/hetzner.py�
read_metadatar s[ � ��!�!��W�+�w��H� �;�;�=��:�S�@�A�A��>�>�(�+�+�2�2�4�t�T�l�K�K� c � � t j | |||�� }|j � st d| z � �|j S )Nr zunable to read userdata at %s)r r r r
r r s r �
read_userdatar sC � ��!�!��W�+�w��H� �;�;�=��:�S�@�A�A����r N)� r � )� cloudinitr r r r � r r �<module>r s �� '�L�r