%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/uaclient/jobs/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/uaclient/jobs/eol_status.py

from uaclient import system
from uaclient.config import UAConfig
from uaclient.entitlements.esm import ESMInfraEntitlement


def check_eol_and_update(cfg: UAConfig) -> bool:
    if cfg.is_attached:
        return True
    series = system.get_platform_info()["series"]
    if not system.is_active_esm(series):
        return True
    ESMInfraEntitlement().setup_unauthenticated_repo()
    return True

Zerion Mini Shell 1.0