HEX
Server: LiteSpeed
System: Linux cluster02.load-balancer.x2.network 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64
User: kbdhpghp (1098)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/rhn/actions/__pycache__/up2date_config.cpython-36.opt-1.pyc
3

�O
fb�@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