| Server IP : 159.223.102.202 / Your IP : 216.73.216.195 Web Server : nginx/1.26.0 System : Linux Gen1-cloudpanel2ubuntu2404-1vcpu-1gb-nyc1-01 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 User : albasshbotta ( 1021) PHP Version : 8.2.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/uaclient/timer/__pycache__/ |
Upload File : |
�
|f� � � � d dl Z d dlmZmZ d dlmZ d dlmZ d dlm Z d dl
mZ e j ej e� � Zdedefd �Zy)
� N)�contract�util)�_is_attached)�UAConfig)�notices)�Notice�cfg�returnc �Z � t | � j r_ t j | � r$t j
t j � yt j t j � yy# t $ r+}t j dt |� |�� Y d }~yd }~ww xY w)Nz:Failed to check for change in machine contract. Reason: %s)�exc_infoFT)
r �is_attachedr �is_contract_changedr �addr �CONTRACT_REFRESH_WARNING�remove� Exception�LOG�warning�str)r �es �E/usr/lib/python3/dist-packages/uaclient/timer/update_contract_info.py�update_contract_infor s� � ��C��$�$� ��+�+�C�0�����3�3�� � ����3�3�� �� � ��K�K�L��A���
�
�
��
�s �8A6 �#A6 �6 B*�?!B%�%B*)�logging�uaclientr r �(uaclient.api.u.pro.status.is_attached.v1r �uaclient.configr �uaclient.filesr �uaclient.files.noticesr � getLogger�replace_top_level_logger_name�__name__r �boolr � � r �<module>r% sJ �� � #� A� $� "� )��g���:��:�:�8�D�E���h� �4� r$