%PDF- %PDF-
Direktori : /lib/python3/dist-packages/uaclient/__pycache__/ |
Current File : //lib/python3/dist-packages/uaclient/__pycache__/actions.cpython-312.pyc |
� �Hcf�5 � � � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZm Z d dl mZmZm Z mZmZmZmZmZ d dl mZ d dl mZmZ d dl mZ d dl mZmZmZ d dlmZ d d lmZm Z m!Z!m"Z" d d l#m$Z$m%Z%m&Z&m'Z' ejP � Z) ejT ejV e,� � Z-dZ.dZ/d e j` dejb de j fd�Z2 d/d e j` deejf dejb de j de4f d�Z5 d/d e j` de6de4de4ddf d�Z7 d0d e j` dej: ddfd�Z8ddddddd�d e j` de6de4de4d e4d!e6de4d"e ee6 fd#�Z9ddd$�d e j` d%e e6 d&e4fd'�Zd(e6ddfd)�Z: d1d(e6d*e ee; ddfd+�Z<d e j` fd,�Z=d e j` d-e6fd.�Z>y)2� N)�List�Optional)�api�clouds�config�contract�entitlements�event_logger� exceptions� livepatch)�log)�messages�secret_manager)�status)�system�timer�util)�AutoAttachCloudInstance)�APPARMOR_PROFILES�CLOUD_BUILD_INFO�DEFAULT_CONFIG_FILE�DEFAULT_LOG_PREFIX)�AttachmentData�attachment_data_file�machine_id_file�timer_jobs_state_file)zapt-news.servicezesm-cache.servicezua-timer.servicezua-timer.timerzua-auto-attach.pathzua-auto-attach.servicezua-reboot-cmds.servicezubuntu-advantage.service� �cfg�contract_client�attached_atc � � ddl m} t j t |�� � t j | �� || � |j � y )Nr ��update_motd_messages�r �r )�uaclient.timer.update_messagingr# r �writer � ua_statusr �update_activity_token)r r r r# s �2/usr/lib/python3/dist-packages/uaclient/actions.py�_handle_partial_attachr+ 8 s= � � E����~�+�F�G� ���������)�)�+� F�services_to_be_enabled�silentc � � d}g }g } |D ]m }t | |j dd|j |�� \ } } || z }| s|j |j � �Nt j |j �� �o |s�t | ||� t j |� |rot j t ||� D � �cg c]C \ } }| t j j# t% |� t'