| Server IP : 188.114.97.3 / Your IP : 216.73.216.30 Web Server : LiteSpeed System : Linux vmi2710904 5.15.0-144-generic #157-Ubuntu SMP Mon Jun 16 07:33:10 UTC 2025 x86_64 User : rarch5794 ( 1006) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/cloudinit/cmd/__pycache__/ |
Upload File : |
o
x[h�
� @ s� d Z ddlZddlZddlZddlmZ ddlmZmZ ddl m
Z
ddlmZm
Z
dZddd �Zd
d� Zdd
� ZedkrBe� dS dS )zCCommandline utility to list the canonical cloud-id for an instance.� N)�read_cfg_paths)�
RunningStatus�get_status_details)�log_util)�METADATA_UNKNOWN�canonical_cloud_idzcloud-idc C sd t � �d�}| stjtdd�} | jdddddd � | jd
ddddd � | jd
dt|d|� �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_json� r �8/usr/lib/python3/dist-packages/cloudinit/cmd/cloud_id.py�
get_parser s<