__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# This file is part of cloud-init. See LICENSE file for license information.
"""Common cloud-init devel command line utility functions."""
from cloudinit.helpers import Paths
from cloudinit.stages import Init
def read_cfg_paths(fetch_existing_datasource: str = "") -> Paths:
"""Return a Paths object based on the system configuration on disk.
:param fetch_existing_datasource: String one of check or trust. Whether to
load the pickled datasource before returning Paths. This is necessary
when using instance paths via Paths.get_ipath method which are only
known from the instance-id metadata in the detected datasource.
:raises: DataSourceNotFoundException when no datasource cache exists.
"""
init = Init(ds_deps=[])
if fetch_existing_datasource:
init.fetch(existing=fetch_existing_datasource)
init.read_cfg()
return init.paths
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| __init__.py | File | 899 B | 0644 |
|
| hotplug_hook.py | File | 11.38 KB | 0644 |
|
| logs.py | File | 13.83 KB | 0644 |
|
| make_mime.py | File | 4.09 KB | 0644 |
|
| net_convert.py | File | 5.57 KB | 0644 |
|
| parser.py | File | 1.35 KB | 0644 |
|
| render.py | File | 3.68 KB | 0644 |
|