OXIESEC PANEL
- Current Dir:
/
/
snap
/
core24
/
988
/
usr
/
lib
/
python3
/
dist-packages
/
cloudinit
/
sources
/
helpers
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/04/2025 04:37:50 PM
rwxr-xr-x
📄
__init__.py
0 bytes
01/15/2025 03:24:11 PM
rw-r--r--
📁
__pycache__
-
05/04/2025 04:37:50 PM
rwxr-xr-x
📄
akamai.py
1.45 KB
01/15/2025 03:24:11 PM
rw-r--r--
📄
azure.py
40.39 KB
01/15/2025 03:24:11 PM
rw-r--r--
📄
cloudsigma.py
2.88 KB
01/15/2025 03:24:11 PM
rw-r--r--
📄
digitalocean.py
6.75 KB
01/15/2025 03:24:11 PM
rw-r--r--
📄
ec2.py
8.58 KB
01/15/2025 03:24:11 PM
rw-r--r--
📄
hetzner.py
840 bytes
01/15/2025 03:24:11 PM
rw-r--r--
📄
netlink.py
11.65 KB
01/15/2025 03:24:11 PM
rw-r--r--
📄
openstack.py
27.17 KB
01/15/2025 03:24:11 PM
rw-r--r--
📄
upcloud.py
6.48 KB
01/15/2025 03:24:11 PM
rw-r--r--
📁
vmware
-
05/04/2025 04:37:50 PM
rwxr-xr-x
📄
vultr.py
7.96 KB
01/15/2025 03:24:11 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