Edit File: config.cpython-36.opt-1.pyc
3 ��cL2 � @ sR d Z ddlZddlZddlZddlZddlmZ ddlmZm Z ddl mZmZ yddl mZmZ W n$ ek r� ddlmZmZ Y nX ddlZejddd �Zeed �s�eje_ejZd;d<d=d>d?d@dAdBdCdDdEdFdGddd d!d"gfd#�Zd$dd%gZG d&d'� d'�ZG d(d)� d)�Zd*d+� Zd,d-� Zd.d/� Zd0d1� Zd2d3� Z d4d5� Z!d6d7� Z"dHd9d:�Z#dS )Izj This module includes the Config and Up2date Config classes use by the up2date agent to hold config info. � N)�SubjectAltNameWarning)�idn_ascii_to_puny�idn_puny_to_unicode)�ustr�sstr)�urlsplit� urlunsplitzrhn-client-toolsT)Zfallback�ugettext�Use a HTTP Proxy�Remote server URL�)https://xmlrpc.cln.cloudlinux.com/XMLRPC/�Mirror list URL�>https://repo.cloudlinux.com/cloudlinux/mirrorlists/cln-mirrors�#Whether or not debugging is enabled�Location of system id�/etc/sysconfig/rhn/systemid�4Override 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 not�BNumber 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-CERT�Disable the reboot actionzDConfig options that can not be overwritten by a config update action� sslCACert� serverURL�disallowConfChanges�noReboot)ZenableProxyr � mirrorURL�debug�systemIdPathZversionOverride� httpProxy� proxyUser� proxyPasswordZenableProxyAuthZnetworkRetriesr r r r# ZtmpDirc @ sl e Zd ZdZddd�Zddd�Zdd� 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)�dict�fileName�load)�self�filename� r- �/usr/lib/python3.6/config.py�__init__K s zConfigFile.__init__c C s� |r || _ | j d krd S tj| j tj�s,d S t| j d�}d}�x�|j� D �]�}|jd�dkr^qH||j� }|spqH|d dkr�|d d� j� }qHnd}|jdd�}t |�dkr�qH|d j� }t |d j� �}d }|jd �} | dkr�|d | � }|}d }|�rx|jd �} |dk�r"t|jt j� ��}nVt | �dk�rVyt|�}W n tk �rR Y nX n"| d dk�rjg }nd d� | D �}||f}|| jk�r�| j| }|d k �r�||d f}|d k �r�|d |f}|| j|<