OS : Linux
PHP Version : 7.4.33
Software : Apache/2.4.6 (CentOS) PHP/7.4.33
Information System : Linux apprendre2 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Disable Function : ó
oBú]c @ s— d Z d d l Z d d l Z d d l Z d d l m Z m Z m Z d e Z d Z d d „ Z d „ Z d „ Z
d „ Z e d
k r“ e ƒ n d S( sC Commandline utility to list the canonical cloud-id for an instance.iÿÿÿÿN( t INSTANCE_JSON_FILEt METADATA_UNKNOWNt canonical_cloud_ids /run/cloud-init/%ss cloud-idc
C s | s! t j d t d d ƒ } n | j d d d d d t d d
ƒ| j d d d d d t d d
ƒ| j d d d t d t d d t ƒ| S( s* 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.
t progt descriptions/ Report the canonical cloud-id for this instances -js --jsont actiont
store_truet defaultt helps5 Report all standardized cloud-id information as json.s -ls --longs= Report extended cloud-id information as tab-delimited string.s -is --instance-datat types. Path to instance-data.json file. Default is %s( t argparset ArgumentParsert NAMEt add_argumentt Falset strt DEFAULT_INSTANCE_JSON( t parser( ( s: /usr/lib/python2.7/site-packages/cloudinit/cmd/cloud_id.pyt
get_parser s c C s t j j d | ƒ d S( Ns
ERROR: %s
i ( t syst stderrt write( t msg( ( s: /usr/lib/python2.7/site-packages/cloudinit/cmd/cloud_id.pyt error+ s c C s) y t j t | j ƒ ƒ } WnE t k
r= t d | j ƒ St k
rc } t d | j | f ƒ SX| j d i ƒ } t | j d t ƒ | j d t ƒ | j d t ƒ ƒ } | j rã | | d