golden hour
/usr/lib/python3.9/site-packages/cloudinit/cmd/devel
⬆️ Go Up
Upload
File/Folder
Size
Actions
__init__.py
899 B
Del
OK
__pycache__
-
Del
OK
hotplug_hook.py
10.86 KB
Del
OK
logs.py
13.87 KB
Del
OK
make_mime.py
4.09 KB
Del
OK
net_convert.py
5.57 KB
Del
OK
parser.py
1.35 KB
Del
OK
render.py
3.68 KB
Del
OK
Edit: __init__.py
# 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
Save