| Server IP : 138.197.176.125 / Your IP : 216.73.217.55 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/__pycache__/ |
Upload File : |
U
x��h2 � @ sl d dl Z d dlmZmZmZmZmZ d dlmZ d dl m
Z
d dlmZ e �
e�e��Zd
ed�dd �ZdS )� N)�
exceptions�lock�messages�system�util)�detach)�_is_attached)�UAConfigF)�cfgc C s� t �d� t| �jsd S t�� j}zt�|�}W n tj k
rF Y n^X t�|�}|j
|j
kr�t �d||� t�� t
� tjj|j|jd�}|r�t|� t �|� d S )NzValidating release serieszDDetaching due to current series %s being higher than only_series: %s)�release�series_codename)�LOG�debugr Zis_attachedr Zget_release_infoZseriesZget_distro_infor ZMissingSeriesInDistroInfoFileZeolr Zclear_lock_file_if_presentr r ZPRO_ONLY_ALLOWED_FOR_RELEASE�formatr r �printZwarning)r
Zonly_seriesZshow_messageZcurrent_seriesZallowed_releaseZcurrent_release�message� r �?/usr/lib/python3/dist-packages/uaclient/update_contract_info.py�validate_release_series s0
��r )F)ZloggingZuaclientr r r r r Zuaclient.api.u.pro.detach.v1r Z(uaclient.api.u.pro.status.is_attached.v1r Zuaclient.configr Z getLoggerZreplace_top_level_logger_name�__name__r
r r r r r �<module> s