/usr/lib/python3/dist-packages/uaclient/entitlements/__pycache__
NameSizeModeActions
anbox.cpython-310.pyc31070644editdlrm
base.cpython-310.pyc341920644editdlrm
cc.cpython-310.pyc12530644editdlrm
cis.cpython-310.pyc15430644editdlrm
entitlement_status.cpython-310.pyc45490644editdlrm
esm.cpython-310.pyc40880644editdlrm
esm_legacy.cpython-310.pyc10120644editdlrm
fips.cpython-310.pyc183970644editdlrm
landscape.cpython-310.pyc42270644editdlrm
livepatch.cpython-310.pyc108090644editdlrm
realtime.cpython-310.pyc72260644editdlrm
repo.cpython-310.pyc180570644editdlrm
ros.cpython-310.pyc21270644editdlrm
__init__.cpython-310.pyc81560644editdlrm
Edit: /usr/lib/python3/dist-packages/uaclient/entitlements/__pycache__/landscape.cpython-310.pyc (4227B)
o Ki@sddlZddlmZmZmZmZddlmZmZm Z m Z m Z m Z ddl mZddlmZmZee eZeZGdddeZdS)N)AnyDictOptionalTuple)api event_logger exceptionsmessagessystemutil) UAEntitlement)ApplicabilityStatusApplicationStatusc seZdZdZejZejZej j Z ej Z defddZdefddZdejdefdd Zdejdefd d Zdeeeejffd d Zdeeeejfffdd ZdeeeejffddZ  ddeee fdeee fdededef fdd Z!Z"S)LandscapeEntitlement landscapereturncCdSNselfrrA/usr/lib/python3/dist-packages/uaclient/entitlements/landscape.py enable_stepsz!LandscapeEntitlement.enable_stepscCrrrrrrr disable_stepsrz"LandscapeEntitlement.disable_stepsprogressc Csdg|j}|sd|vr|dg7}td||ttjj d |dz t j || dWd St jyi}z&t||s^|d|jt j|j|jdWYd}~d Sd}~ww) Nlandscape-config--silentz Executing: %r command)pipe_stdouterrinfo)stdoutstderrFT) extra_argsis_interactiveLOGdebugrr redact_sensitive_logsr EXECUTING_COMMANDformatjoinr subprProcessExecutionError exceptionemitr%stripLandscapeConfigFailedr$rrcmderrr_perform_enables,     z$LandscapeEntitlement._perform_enablec Csddg}|tjjd|dzt|Wn"tjy:}zt || dt | WYd}~nd}~ww| dtjdS)Nrz --disablerr r#T)rr r+r,r-r r.rr/r(errorr1strr2LANDSCAPE_CONFIG_REMAINSr4rrr_perform_disable3s  z%LandscapeEntitlement._perform_disablecCs(|rtdrtjdfStjtjfS)Nzlandscape-client)are_required_packages_installedr is_systemd_unit_activerENABLEDDISABLEDr LANDSCAPE_SERVICE_NOT_ACTIVErrrrapplication_statusBs z'LandscapeEntitlement.application_statuscsft}|dtjkr1|jddi}|dd}tj}|j r1|dur1||vr1tjt j fS|S)Nr entitlement affordancesseries) superapplicability_statusr INAPPLICABLEentitlement_cfggetr get_release_inforDaffordance_check_seriesr LANDSCAPE_INAPPLICABLE)rrF affordanceaffordance_seriescurrent_series __class__rrrFPs    z)LandscapeEntitlement.applicability_statuscCs@trz tgdWdStjydtjfYSwdS)N)rz--is-registeredrT)FN)r we_are_currently_rootr r.rr/r LANDSCAPE_NOT_REGISTEREDrrrrenabled_warning_statuses z+LandscapeEntitlement.enabled_warning_statusFT orig_accessdeltas allow_enableverbosecstj||d|dS)NF)rWrX)rEprocess_contract_deltas)rrUrVrWrXrPrrrYws z,LandscapeEntitlement.process_contract_deltas)FT)#__name__ __module__ __qualname__namer LANDSCAPE_TITLEtitleLANDSCAPE_DESCRIPTION descriptionurlsLANDSCAPE_HOME_PAGE help_doc_urlLANDSCAPE_HELP_TEXT help_textintrrrProgressWrapperboolr7r;rrr NamedMessagerAr rFrTrr9rrY __classcell__rrrPrrs@    r)loggingtypingrrrruaclientrrrr r r uaclient.entitlements.baser (uaclient.entitlements.entitlement_statusr r getLoggerreplace_top_level_logger_namerZr(get_event_loggereventrrrrrs