HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //usr/lib/python3/dist-packages/uaclient/cli/__pycache__/refresh.cpython-310.pyc
o

Uٵg�	�@s
ddlZddlmZmZmZmZmZmZddlm	Z	ddl
mZmZm
Z
ddlmZddlmZmZe�e�e��Zdejfdd	�Ze	��dejfd
d��Zdejfdd
�Ze	je	�d�dejfdd���Ze
dejej edej!eedej"dgd�dd�gd�gd�Z#dS)�N)�apt_news�config�contract�
exceptions�messages�util)�cli_util)�ProArgument�ProArgumentGroup�
ProCommand)�HelpCategory)�refresh_motd�update_motd_messages�cfgc
CsFz|��Wnty}z	t�|�t���d}~wwttj�dS�N)	�process_config�RuntimeError�LOG�	exceptionr�RefreshConfigFailure�printr�REFRESH_CONFIG_SUCCESS)�argsr�exc�r�6/usr/lib/python3/dist-packages/uaclient/cli/refresh.py�_action_refresh_configs
��rcCs6zt�|�Wntjyt���wttj�dSr)r�refreshr�ConnectivityError�RefreshContractFailurerr�REFRESH_CONTRACT_SUCCESS)�_argsrrrr�_action_refresh_contracts�r"c
Cs\zt|�t�|jrt�|�Wnty&}z	t�|�t���d}~wwt	t
j�dSr)rr
r�update_apt_news�	Exceptionrrr�RefreshMessagesFailurerr�REFRESH_MESSAGES_SUCCESS)r!rrrrr�_action_refresh_messagess
�
��r'zpro refreshcKs^|jdus
|jdkrt||�|jdus|jdkrt||�|jdus(|jdkr-t||�dS)Nrrrr)�targetrr"r')rr�kwargsrrr�action_refresh.s


r*rTr(�?)rrr)�help�nargs�choices�default)�	arguments)r,�description�action�preserve_description�
help_category�argument_groups)$�logging�uaclientrrrrrr�uaclient.clir�uaclient.cli.commandsr	r
r�uaclient.cli.parserr�uaclient.timer.update_messagingr
r�	getLogger�replace_top_level_logger_name�__name__r�UAConfigr�assert_attachedr"r'�assert_root�assert_lock_filer*�CLI_ROOT_REFRESH�CLI_REFRESH_DESC�OTHER�CLI_REFRESH_TARGET�refresh_commandrrrr�<module>sB 	
����
�