404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.191.181.251: ~ $
# 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

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
vmware Folder 0755
__init__.py File 0 B 0644
akamai.py File 1.45 KB 0644
azure.py File 42.89 KB 0644
cloudsigma.py File 2.75 KB 0644
digitalocean.py File 7.07 KB 0644
ec2.py File 8.58 KB 0644
hetzner.py File 840 B 0644
netlink.py File 11.72 KB 0644
openstack.py File 25.61 KB 0644
upcloud.py File 6.48 KB 0644
vultr.py File 7.15 KB 0644