OXIESEC PANEL
- Current Dir:
/
/
snap
/
core24
/
1055
/
usr
/
lib
/
python3
/
dist-packages
/
cloudinit
/
sources
/
helpers
Server IP: 10.0.0.4
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/18/2025 08:10:57 PM
rwxr-xr-x
📄
__init__.py
0 bytes
04/17/2025 06:53:20 PM
rw-r--r--
📁
__pycache__
-
06/18/2025 08:10:57 PM
rwxr-xr-x
📄
akamai.py
1.45 KB
04/17/2025 06:53:20 PM
rw-r--r--
📄
aliyun.py
7.18 KB
04/17/2025 06:53:20 PM
rw-r--r--
📄
azure.py
40.38 KB
04/17/2025 06:53:20 PM
rw-r--r--
📄
cloudsigma.py
2.88 KB
04/17/2025 06:53:20 PM
rw-r--r--
📄
digitalocean.py
6.75 KB
04/17/2025 06:53:20 PM
rw-r--r--
📄
ec2.py
8.58 KB
04/17/2025 06:53:20 PM
rw-r--r--
📄
hetzner.py
840 bytes
04/17/2025 06:53:20 PM
rw-r--r--
📄
netlink.py
11.65 KB
04/17/2025 06:53:20 PM
rw-r--r--
📄
openstack.py
27.46 KB
04/17/2025 06:53:20 PM
rw-r--r--
📄
upcloud.py
6.48 KB
04/17/2025 06:53:20 PM
rw-r--r--
📁
vmware
-
06/18/2025 08:10:57 PM
rwxr-xr-x
📄
vultr.py
7.95 KB
04/17/2025 06:53:20 PM
rw-r--r--
Editing: hetzner.py
Close
# Author: Jonas Keidel <jonas.keidel@hetzner.com> # Author: Markus Schade <markus.schade@hetzner.com> # # This file is part of cloud-init. See LICENSE file for license information. from cloudinit import url_helper, util def read_metadata(url, timeout=2, sec_between=2, retries=30): response = url_helper.readurl( url, timeout=timeout, sec_between=sec_between, retries=retries ) if not response.ok(): raise RuntimeError("unable to read metadata at %s" % url) return util.load_yaml(response.contents.decode()) def read_userdata(url, timeout=2, sec_between=2, retries=30): response = url_helper.readurl( url, timeout=timeout, sec_between=sec_between, retries=retries ) if not response.ok(): raise RuntimeError("unable to read userdata at %s" % url) return response.contents