/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__/config.cpython-310.pyc (6639B)
o Ki* @sddlmZmZmZmZmZmZmZddlm Z ddl m Z ddl m Z ddlmZmZmZddlmZddlmZddlmZdd lmZdd lmZmZdd lmZmZe Z!d d Z"ddZ#e j$ddZ%e j$ddZ&edej'ej'e#eedej(ddgdgdZ)edej*ej*e%eedej+j,d-ej.ddgdgdZ/edej0ej0e&eedej1j,d-ej.ddd gdgdZ2ed!ej3ej4e"ej5e)e/e2gd"Z6d#S)$)apt_newsconfig entitlements event_logger exceptionshttpmessages) _is_attached) AptProxyScope)cli_util) ProArgumentProArgumentGroup ProCommand) HelpCategory)ApplicationStatus) state_files)LXDGuestAttachEnum)configure_livepatch_proxyunconfigure_livepatch_proxy)configure_snap_proxyunconfigure_snap_proxycKsddlm}|ddS)Nr get_parserr) uaclient.clirprint_help_for_command)argscfgkwargsrr5/usr/lib/python3/dist-packages/uaclient/cli/config.py action_configs  r cKs|jr)|jtjvrtjd|jdtjdtdj|jt||jdddSt t dd tjDd }d |d }tjD]}t|j|t||ddq@|j sV|j rc|j s\|jrettjdSdSdS) zPerform the 'config show' action optionally limit output to a single key :return: 0 on success :raise UbuntuProError: on invalid keys z'{}', argchoicesz {key} {value}NkeyvaluercSsg|]}t|qSr)len).0xrrr 6sz&action_config_show..z{key: ?|d"t@|||d S)$zMPerform the 'config set' action. @return: 0 on success, 1 otherwise rr=z config setz =)expectedactualr!r")r#N)truefalsezz true, falserA http_proxy https_proxy_rzpro scoped aptz global apt) current_proxyprevious_proxyhttps apt_{}_proxyglobal_apt_{}_proxyoldnewglobal_)update_messaging_timermetering_timerzInvalid interval for {}r%rlxd_guest_attach guest_attachr)Arrkey_value_pairsplit ValueErrorrrGenericInvalidFormatrr-r.r0stripEmptyConfigValuetyper2boollowerrPROXY_VALIDATION_SNAP_HTTP_URLPROXY_VALIDATION_SNAP_HTTPS_URLvalidate_proxyrr livepatchLivepatchEntitlementapplication_statusrENABLEDrua_scoped_proxy_optionsPROXY_VALIDATION_APT_HTTP_URLPROXY_VALIDATION_APT_HTTPS_URLr5r6r1rWARNING_APT_PROXY_OVERWRITEr/r configure_apt_proxyr UACLIENT&deprecated_global_scoped_proxy_optionsglobal_scoped_proxy_optionsWARNING_CONFIG_FIELD_RENAMEr7r8GLOBALintInvalidPosIntConfigValuerupdate_apt_newsrapt_news_contents_filedeleter is_attachedUnattachedErrorlxd_pro_config_filewrite LXDProConfigr from_valuesetattr) rrrrparserset_key set_value protocol_type validate_url entitlementlivepatch_statusrF unset_currentrrraction_config_setBs                            rc KsXddlm}|jtjvr|}|dtjddtjd|jdvrH|j dd}t |d t j |}|\}}|tjkrGt|d n[|j|jvrYt|tj|jd nJ|j|j|jvr|j|jvrd |jvrod nd }ttjjd |d|dd|j|_t|tj|jd n|jdkrtj !tj"t#j$dt%||jd dS)zOPerform the 'config unset' action. @return: 0 on success, 1 otherwise rrz config unsetr@r!r"rCrF)rNrJrrKrLrMrPrTrU)&rrr&rr-rrr.r0rXrrrcrdrerrfrrgr rkr rlrmrneventinforror/rprrxryrzrOFFr|) rrrrr}rrrrFrrraction_config_unsetsP                rshowr&?)helpnargs) arguments)r descriptionactionargument_groupssetrWr!)options)runset)rmetavarr)rrr help_category subcommandsN)7uaclientrrrrrrr(uaclient.api.u.pro.status.is_attached.v1r uaclient.aptr rr uaclient.cli.commandsr r ruaclient.cli.parserr(uaclient.entitlements.entitlement_statusruaclient.filesruaclient.files.user_config_fileruaclient.livepatchrr uaclient.snaprrget_event_loggerrr r< assert_rootrrCLI_CONFIG_SHOW_DESCCLI_CONFIG_SHOW_KEYshow_subcommandCLI_CONFIG_SET_DESCCLI_CONFIG_SET_KEY_VALUEr/r0r-set_subcommandCLI_CONFIG_UNSET_DESCCLI_CONFIG_UNSET_KEYunset_subcommandCLI_ROOT_CONFIGCLI_CONFIG_DESCOTHERconfig_commandrrrrs$        0