HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/uaclient/cli/__pycache__/refresh.cpython-38.pyc
U

��Jh�	�@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@ 	
�����