File: //lib/python3.6/site-packages/up2date_client/__pycache__/config.cpython-36.pyc
3
c8h9 @ sn d Z ddlZddlZddlZddlZddlmZmZ ddlm Z m
Z
yddlmZm
Z
W n$ ek
r| ddlmZm
Z
Y nX ddlZejdddZeed seje_ejZdEdFdGdHdIdJdKdLdMdNdOdPdQdRdd d!d"d#gfd$Zd%d d&gZG d'd( d(ZG d)d* d*Zd+d, Zd-d. Zd/d0 Zd1d2 Zd3d4 ZdSd6d7ZdTd8d9Z dUd:d;Z!d<d= Z"d>d? Z#d@dA Z$dVdCdDZ%dS )Wzj
This module includes the Config and Up2date Config classes use by the
up2date agent to hold config info.
N)idn_ascii_to_punyidn_puny_to_unicode)ustrsstr)urlsplit
urlunsplitzrhn-client-toolsT)ZfallbackugettextUse a HTTP ProxyRemote server URL)https://xmlrpc.cln.cloudlinux.com/XMLRPC/&Remote server URL for access over IPv6.https://ipv6.xmlrpc.cln.cloudlinux.com/XMLRPC/Mirror list URL>https://repo.cloudlinux.com/cloudlinux/mirrorlists/cln-mirrors#Whether or not debugging is enabledLocation of system id/etc/sysconfig/rhn/systemid4Override the automatically determined system version ;HTTP proxy in host:port format, e.g. squid.example.com:3128'The username for an authenticated proxy.The password to use for an authenticated proxy$To use an authenticated proxy or notBNumber of attempts to make at network connections before giving up )The CA cert used to verify the ssl server'/usr/share/rhn/CLN-ORG-TRUSTED-SSL-CERTDisable the reboot actionzDConfig options that can not be overwritten by a config update action sslCACert serverURLdisallowConfChangesnoReboot)ZenableProxyr
serverURLipv6 mirrorURLdebugsystemIdPathZversionOverride httpProxy proxyUser
proxyPasswordZenableProxyAuthZnetworkRetriesr r! r r% ZtmpDirc @ sl e Zd ZdZdddZdddZdd Zd d
Zdd Zd
d Z dd Z
dd Zdd Zdd Z
dd ZdS )
ConfigFilez;class for handling persistent config options for the clientNc C s i | _ || _| jr| j d S )N)dictfileNameload)selffilename r/ /usr/lib/python3.6/config.py__init__C s zConfigFile.__init__c C s |r
|| _ | j d krd S tj| j tjs,d S t| j d}d}x|j D ]}|jddkr^qH||j }|spqH|d dkr|d d j }qHnd}|jdd}t |dkrqH|d j }t
|d j }d }|jd } | dkr|d | }|}d }|rx|jd
}
|dkr"t|jt
j }nVt |
dkrVyt|}W n tk
rR Y nX n"|
d dkrjg }nd
d |
D }||f}|| jkr| j| }|d k r||d f}|d k r|d |f}|| j|<