File manager - Edit - /usr/lib/python3/dist-packages/cloudinit/cmd/devel/__pycache__/__init__.cpython-310.pyc
Back
o o@�dx � @ sP d Z ddlZddlmZ ddlmZ ddlmZ dd� Zd d e d efdd�Z dS )z6Common cloud-init devel commandline utility functions.� N)�log)�Paths)�Initc C s t �d�}tj||d� | S )z=Add a commandline logging handler to emit messages to stderr.z%(levelname)s: %(message)s)� formatter)�logging� Formatterr �setupBasicLogging)�logger� log_levelr � r �>/usr/lib/python3/dist-packages/cloudinit/cmd/devel/__init__.py�addLogHandlerCLI s r � �fetch_existing_datasource�returnc C s( t g d�}| r |j| d� |�� |jS )aw 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. )�ds_deps)�existing)r �fetch�read_cfg�paths)r �initr r r �read_cfg_paths s r )r )�__doc__r � cloudinitr �cloudinit.helpersr �cloudinit.stagesr r �strr r r r r �<module> s
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings