Server IP : 23.254.227.96 / Your IP : 216.73.216.7 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.6/site-packages/cloudinit/cmd/__pycache__/ |
Upload File : |
3 ��b� � @ s� d Z ddlZddlZddlZddlmZmZ ddlmZm Z m Z ddlmZ de Z dZddd �Zd d� Zdd � Zedkr�e� dS )zCCommandline utility to list the canonical cloud-id for an instance.� N)�UXAppStatus�get_status_details)�INSTANCE_JSON_FILE�METADATA_UNKNOWN�canonical_cloud_id)�errorz/run/cloud-init/%szcloud-idc C sV | st jtdd�} | jdddddd� | jd d dddd� | jdd ttdt 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. z/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 %s)�typer r )�argparse�ArgumentParser�NAME�add_argument�str�DEFAULT_INSTANCE_JSON)�parser� r �/usr/lib/python3.6/cloud_id.py� get_parser s0 r c C s: t � \}}}|tjkr.tjjdj|j�� dS |tjkrPtjjdj|j�� dS yt j t|j��}W nJ t k r� td|j �S tk r� } ztd|j|f �S d}~X nX |jdi �}t|jdt�|jd t�|jd t��}|j �r||d<