/usr/lib/python3/dist-packages/uaclient/entitlements
NameSizeModeActions
__pycache__/-0755rm
base.py134130644editdlrm
cc.py7040644editdlrm
cis.py3490644editdlrm
esm.py12450644editdlrm
fips.py29580644editdlrm
livepatch.py97030644editdlrm
repo.py116910644editdlrm
__init__.py9540644editdlrm
Edit: /usr/lib/python3/dist-packages/uaclient/entitlements/esm.py (1245B)
from uaclient.entitlements import repo from uaclient import util try: from typing import Optional # noqa: F401 except ImportError: # typing isn't available on trusty, so ignore its absence pass class ESMBaseEntitlement(repo.RepoEntitlement): help_doc_url = "https://ubuntu.com/esm" class ESMAppsEntitlement(ESMBaseEntitlement): origin = "UbuntuESMApps" name = "esm-apps" title = "ESM Apps" description = "UA Apps: Extended Security Maintenance" repo_key_file = "ubuntu-advantage-esm-apps.gpg" class ESMInfraEntitlement(ESMBaseEntitlement): name = "esm-infra" origin = "UbuntuESM" title = "ESM Infra" description = "UA Infra: Extended Security Maintenance" repo_key_file = "ubuntu-advantage-esm-infra-trusty.gpg" @property def repo_pin_priority(self) -> "Optional[str]": """Only trusty esm-infra should peform repo pinning""" if "trusty" == util.get_platform_info()["series"]: return "never" return None # No pinning on >= trusty @property def disable_apt_auth_only(self) -> bool: """Only trusty esm-infra should remove apt auth files upon disable""" return bool("trusty" == util.get_platform_info()["series"])