
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
3
\meH                 @   s(   d dl mZmZ d	ddZd
ddZdS )    )
url_helperutil      c             C   s6   t j| |||d}|j s&td|  tj|jj S )N)timeoutsec_betweenretrieszunable to read metadata at %s)r   readurlokRuntimeErrorr   Z	load_yamlcontentsdecode)urlr   r   r   response r   /usr/lib/python3.6/hetzner.pyread_metadata	   s
    r   c             C   s,   t j| |||d}|j s&td|  |jS )N)r   r   r   zunable to read userdata at %s)r   r	   r
   r   r   )r   r   r   r   r   r   r   r   read_userdata   s
    r   N)r   r   r   )r   r   r   )Z	cloudinitr   r   r   r   r   r   r   r   <module>   s   
	