| Server IP : 159.223.102.202 / Your IP : 216.73.216.195 Web Server : nginx/1.26.0 System : Linux Gen1-cloudpanel2ubuntu2404-1vcpu-1gb-nyc1-01 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 User : albasshbotta ( 1021) PHP Version : 8.2.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/cloudinit/cmd/devel/__pycache__/ |
Upload File : |
�
�f� � �2 � d Z ddlmZ ddlmZ ddedefd�Zy) z6Common cloud-init devel commandline utility functions.� )�Paths)�Init�fetch_existing_datasource�returnc �z � t g �� }| r|j | �� |j � |j S )a� 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.
)�ds_deps)�existing)r �fetch�read_cfg�paths)r �inits �>/usr/lib/python3/dist-packages/cloudinit/cmd/devel/__init__.py�read_cfg_pathsr s3 � � ���D� ��
�
�5�
�6��M�M�O��:�:�� N)� )�__doc__�cloudinit.helpersr �cloudinit.stagesr �strr � r r �<module>r s# �� =� #� !��c� �5� r