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/__pycache__/update_contract_info.cpython-38.pyc
U

��Jh2�@slddlZddlmZmZmZmZmZddlmZddl	m
Z
ddlmZe�
e�e��Zd
ed�dd	�ZdS)�N)�
exceptions�lock�messages�system�util)�detach)�_is_attached)�UAConfigF)�cfgcCs�t�d�t|�jsdSt��j}zt�|�}Wntj	k
rFYn^Xt�|�}|j
|j
kr�t�d||�t��t
�tjj|j|jd�}|r�t|�t�|�dS)NzValidating release serieszDDetaching due to current series %s being higher than only_series: %s)�release�series_codename)�LOG�debugrZis_attachedrZget_release_infoZseriesZget_distro_inforZMissingSeriesInDistroInfoFileZeolrZclear_lock_file_if_presentrrZPRO_ONLY_ALLOWED_FOR_RELEASE�formatrr�printZwarning)r
Zonly_seriesZshow_messageZcurrent_seriesZallowed_releaseZcurrent_release�message�r�?/usr/lib/python3/dist-packages/uaclient/update_contract_info.py�validate_release_seriess0



��r)F)ZloggingZuaclientrrrrrZuaclient.api.u.pro.detach.v1rZ(uaclient.api.u.pro.status.is_attached.v1rZuaclient.configr	Z	getLoggerZreplace_top_level_logger_name�__name__r
rrrrr�<module>s