/usr/lib/python3/dist-packages/uaclient/cli/__pycache__
NameSizeModeActions
api.cpython-310.pyc21050644editdlrm
attach.cpython-310.pyc40180644editdlrm
auto_attach.cpython-310.pyc11240644editdlrm
cli_util.cpython-310.pyc86480644editdlrm
collect_logs.cpython-310.pyc17610644editdlrm
commands.cpython-310.pyc38540644editdlrm
config.cpython-310.pyc66390644editdlrm
cve.cpython-310.pyc46180644editdlrm
cves.cpython-310.pyc31850644editdlrm
detach.cpython-310.pyc29830644editdlrm
disable.cpython-310.pyc63980644editdlrm
enable.cpython-310.pyc109110644editdlrm
fix.cpython-310.pyc205560644editdlrm
formatter.cpython-310.pyc79720644editdlrm
help.cpython-310.pyc13360644editdlrm
parser.cpython-310.pyc32940644editdlrm
refresh.cpython-310.pyc23760644editdlrm
security_status.cpython-310.pyc18530644editdlrm
status.cpython-310.pyc18640644editdlrm
system.cpython-310.pyc12430644editdlrm
__init__.cpython-310.pyc72210644editdlrm
Edit: /usr/lib/python3/dist-packages/uaclient/cli/__pycache__/cves.cpython-310.pyc (3185B)
o Ki@sddlZddlmZmZddlmZmZddlmZddl m Z m Z m Z ddl mZmZddlmZddlmZejejd d efd d Zd dZddZd efddZd efddZe dejejeejde e dejdde dejddgdgdZ dS)N) exceptionsmessages) CVEsOptions_cves)cli_util) ProArgumentProArgumentGroup ProCommand)Table create_link) HelpCategory)UAConfig)msgcfgcKs>t|j|jd}z t||d}W|Stjyd}Y|Sw)N)fixable unfixable)optionsr)rrrrrVulnerabilityDataNotFound)argsrkwargs cve_optionsresultr3/usr/lib/python3/dist-packages/uaclient/cli/cves.py_get_cve_vulnerabilities srcCsVg}|jD]!\}}|jD]}|j|j}|r'|||j|jp"d|jfqq|S)N-)packagesitemscvesgetnameappendpriority fix_origin)cve_vulnerabilitiesrows package_name package_infocvecve_inforrr_get_cve_table_rowss  r*c CsXg}t|dddD]}||dt|d|dt|dd|dd fq |S) NcSs|dd|dfS)Nr)criticalhighmediumlow negligible)index)rowrrr3s z"_format_cve_rows..)keyrr0zhttps://ubuntu.com/security/{})texturl)sortedr!rcolorize_priorityr format)cve_rowsformatted_rowsr2rrr_format_cve_rows/s     r>cCst||d}|s t|jr>tt|}|r#ttgd|ddS|jr-tt j dS|j r7tt j dStt j dS|jrHtt j dS|j rRtt j dStt j dS)N)r)PackagePriorityOrigin Vulnerability)headersr%)rrrrr>r*printr rrCLI_UNFIXABLE_CVES_NOT_AFFECTEDrCLI_FIXABLE_CVES_NOT_AFFECTEDCLI_CVES_NOT_AFFECTED)rrr$r%rrr _list_cvesGs,  rHcKsL|jr |jr tjdddz t||dWdSty%tjYdSw)Nrr)option1option2)rr) rrrInvalidOptionCombinationrHBrokenPipeErrorsysstderrclose)rrrrrr action_cvesgs  rPrTz --unfixable store_true)helpactionz --fixable) arguments)rR descriptionrS help_categorypreserve_descriptionargument_groups)!rMuaclientrr#uaclient.api.u.pro.security.cves.v1rr uaclient.cliruaclient.cli.commandsrrr uaclient.cli.formatterr r uaclient.cli.parserr uaclient.configr with_spinnerCLI_CVES_SPINNER_MSGrr*r>rHrPCLI_CVES CLI_CVES_DESCSECURITYCLI_CVES_UNFIXABLECLI_CVES_FIXABLE cves_commandrrrrsH