| Server IP : 159.223.102.202 / Your IP : 216.73.217.92 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/__pycache__/ |
Upload File : |
�
�f�
� � � d Z ddlZddlZddlZddlmZ ddlmZmZ ddl m
Z
mZ ddlm
Z
dZdd�Zd � Zd
� Zedk( r e� yy)
zCCommandline utility to list the canonical cloud-id for an instance.� N)�read_cfg_paths)�
RunningStatus�get_status_details)�METADATA_UNKNOWN�canonical_cloud_id)�errorzcloud-idc � � t � j d� }| st j t d�� } | j ddddd� � | j d
dddd� � | j d
dt |d|� ��� | S )a* Build or extend an arg parser for the cloud-id utility.
@param parser: Optional existing ArgumentParser instance representing the
query subcommand which will be extended to support the args of
this utility.
@returns: ArgumentParser with proper argument configuration.
�
instance_dataz/Report the canonical cloud-id for this instance)�prog�descriptionz-jz--json�
store_trueFz5Report all standardized cloud-id information as json.)�action�default�helpz-lz--longz=Report extended cloud-id information as tab-delimited string.z-iz--instance-dataz,Path to instance-data.json file. Default is )�typer r )r �get_runpath�argparse�ArgumentParser�NAME�add_argument�str)�parser�default_instance_jsons �8/usr/lib/python3/dist-packages/cloudinit/cmd/cloud_id.py�
get_parserr s� � � +�,�8�8��I����(�(��I�
�� �������
D� � � �������
L� � � �����
�%�
�/�0�
2�
� � �M� c � � t � }|j t j k( rCt j
j
dj |j j � � y|j t j k( rCt j
j
dj |j j � � y t |j � 5 }t j |� }ddd� j# di � }t% |j# d t&