⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.51
Server IP:
15.204.235.159
Server:
Linux srv.techlup.co.ke 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.6
/
site-packages
/
cloudinit
/
cmd
/
devel
/
View File Name :
__init__.py
# This file is part of cloud-init. See LICENSE file for license information. """Common cloud-init devel commandline 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