a ’f8h¯ã@s^ddlZddlZddlmZe ¡ZddgZdZd dd„Zd dd„Z dd„Z e d krZe ƒdS) éN)ÚconfigÚupdateÚgetcCs˜|rddifStdkrtdƒt|ƒtiƒkr8ddifSg}tdrNtd}ng}| ¡D]}||vrhqZt |||¡qZt|ƒr†|St ¡ddifS) z9Invoke this to change the ondisk configuration of up2daterúno-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.9/site-packages/rhn/actions/up2date_config.pyrs$    cCsJ|rddifStdkrtdƒi}t ¡D]}t|||<q*ddd|ifS)z.Reterieve the current configuration of up2daterrrzcalled get_up2date_configzconfiguration retrivedÚdata)rr r r )rÚretÚkrrrr3s  cCsjtƒ}|dd}ddl}| ¡}||d<t|ƒddl}| t|ƒ¡d|d<d|d<| t|ƒ¡dS) NérrZ timeStampTestz)https://xmlrpc.cln.cloudlinux.com/XMLRPC/Z serverURLz.https://ipv6.xmlrpc.cln.cloudlinux.com/XMLRPC/Z serverURLipv6)rÚtimer Úpprintr)Z configdatatupZ configdatarZ timestamprrrrÚmain@s rÚ__main__)N)N) ÚosÚreZup2date_clientrZinitUp2dateConfigr Z __rhnexport__rrrrÚ__name__rrrrÚs