Your IP : 18.188.211.58


Current Path : /usr/lib/python3.6/site-packages/rhn/actions/__pycache__/
Upload File :
Current File : //usr/lib/python3.6/site-packages/rhn/actions/__pycache__/up2date_config.cpython-36.pyc

3

ػ$gb�@s^ddlZddlZddlmZej�ZddgZdZd
dd�Zddd�Z	dd�Z
ed	krZe
�dS)�N)�config�update�getcCs�|rddifStdkrtd�t|�ti�kr8ddifSg}tdrNtd}ng}x*|j�D]}||krjq\tj|||�q\Wt|�r�|Stj�ddifS)	z9Invoke this to change the ondisk configuration of up2daterzno-ops for caching�zcalled update_up2date_config�
z$Invalid arguments passed to functionZdisallowConfChangeszconfig updated)�
argVerbose�print�type�cfg�keys�set�lenZsave)Z
configdict�
cache_onlyZ
unknownparamsZ
skipParamsZparam�r�$/usr/lib/python3.6/up2date_config.pyrs$


cCsN|rddifStdkrtd�i}xtj�D]}t|||<q,Wddd|ifS)z.Reterieve the current configuration of up2daterzno-ops for cachingrzcalled get_up2date_configzconfiguration retrived�data)rrr
r)r�ret�krrrr2s
cCsbt�}|dd}ddl}|j�}||d<t|�ddl}|jt|��d|d<|jt|��dS)N�rrZ
timeStampTestz)https://xmlrpc.cln.cloudlinux.com/XMLRPC/Z	serverURL)r�timer�pprintr)Z
configdatatupZ
configdatarZ	timestamprrrr�main@sr�__main__)N)N)�os�reZup2date_clientrZinitUp2dateConfigr
Z
__rhnexport__rrrr�__name__rrrr�<module>s



?>