/usr/lib/python3/dist-packages/cloudinit/sources/helpers/__pycache__
Edit: /usr/lib/python3/dist-packages/cloudinit/sources/helpers/__pycache__/hetzner.cpython-310.pyc (1175B)
o
th @ sp d dl mZmZ d dlmZmZ dejdefddZ ddeee e
f fd d
Zde dee fdd
ZdS ) )OptionalTuple)net
url_helpercausereturnc C s
| j dkS )N )code)r r
C/usr/lib/python3/dist-packages/cloudinit/sources/helpers/hetzner.py_skip_retry_on_empty_response s
r x c
C sp zt j| |||td\}}|std| ||fW S t jy7 } z|jdkr2|jdfW Y d }~S d }~ww )N)urlsmax_waittimeout
sleep_timeexception_cbz!No data received from urls: '%s':r )r wait_for_urlr RuntimeErrorUrlErrorr url)r r r r r contentser
r
r get_metadata s"
r macc C s t }|| S )N)r get_interfaces_by_macgetlower)r mac_to_ifacer
r
r get_interface_name_from_mac) s r! N)r
r r )
typingr r cloudinitr r r boolr strbytesr r! r
r
r
r
s