403Webshell
Server IP : 138.197.176.125  /  Your IP : 216.73.217.54
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
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__/refresh.cpython-38.pyc
U

Uٵg�	�@sddlZddlmZmZmZmZmZmZddlm	Z	ddl
mZmZm
Z
ddlmZddlmZmZe�e�e��Zejd�dd	�Ze	��ejd�d
d��Zejd�dd
�Ze	je	�d�ejd�dd���Ze
dejej edej!eedej"ddddgdd�gd�gd�Z#dS)�N)�apt_news�config�contract�
exceptions�messages�util)�cli_util)�ProArgument�ProArgumentGroup�
ProCommand)�HelpCategory)�refresh_motd�update_motd_messages)�cfgc
CsPz|��Wn4tk
r@}zt�|�t���W5d}~XYnXttj�dS�N)	Zprocess_config�RuntimeError�LOG�	exceptionrZRefreshConfigFailure�printrZREFRESH_CONFIG_SUCCESS)�argsr�exc�r�6/usr/lib/python3/dist-packages/uaclient/cli/refresh.py�_action_refresh_configs
rcCs<zt�|�Wntjk
r,t���YnXttj�dSr)r�refreshrZConnectivityErrorZRefreshContractFailurerrZREFRESH_CONTRACT_SUCCESS)�_argsrrrr�_action_refresh_contracts
rc
Csfz"t|�t�|jr t�|�Wn4tk
rV}zt�|�t���W5d}~XYnXt	t
j�dSr)rr
rZupdate_apt_news�	ExceptionrrrZRefreshMessagesFailurerrZREFRESH_MESSAGES_SUCCESS)rrrrrr�_action_refresh_messagess
rzpro refreshcKs^|jdks|jdkrt||�|jdks2|jdkr<t||�|jdksP|jdkrZt||�dS)Nrrrr)�targetrrr)rr�kwargsrrr�action_refresh.s


r!rTr�?rrr)�help�nargs�choices�default)Z	arguments)r#Zdescription�actionZpreserve_descriptionZ
help_categoryZargument_groups)$ZloggingZuaclientrrrrrrZuaclient.clirZuaclient.cli.commandsr	r
rZuaclient.cli.parserrZuaclient.timer.update_messagingr
rZ	getLoggerZreplace_top_level_logger_name�__name__rZUAConfigrZassert_attachedrrZassert_rootZassert_lock_filer!ZCLI_ROOT_REFRESHZCLI_REFRESH_DESCZOTHERZCLI_REFRESH_TARGETZrefresh_commandrrrr�<module>s@ 	
�����

Youez - 2016 - github.com/yon3zu
LinuXploit