
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
3
`P                 @   s^   d dl Z d dlZd dlmZ ej ZddgZd Zd
ddZdddZ	dd Z
ed	krZe
  dS )    N)configupdategetc             C   s   |rddi fS t dkrtd t| ti kr8ddi fS g }td rNtd }ng }x*| j D ]}||krjq\tj|| |  q\W t|r|S tj  ddi fS )	z9Invoke this to change the ondisk configuration of up2dater   zno-ops for caching   zcalled update_up2date_config   z$Invalid arguments passed to functionZdisallowConfChangeszconfig updated)
argVerboseprinttypecfgkeyssetlenZsave)Z
configdict
cache_onlyZunknownparamsZ
skipParamsZparam r   $/usr/lib/python3.6/up2date_config.pyr      s$    


c             C   sN   | rddi fS t dkrtd i }xtj D ]}t| ||< q,W ddd|ifS )z.Reterieve the current configuration of up2dater   zno-ops for cachingr   zcalled get_up2date_configzconfiguration retriveddata)r   r   r
   r   )r   retkr   r   r   r   2   s    
c              C   sb   t  } | d d }dd l}|j }||d< t| dd l}|jt| d|d< |jt| d S )N   r   r   ZtimeStampTestzhttp://localhost/XMLRPCZ	serverURL)r   timer   pprintr   )ZconfigdatatupZ
configdatar   Z	timestampr   r   r   r   main@   s    r   __main__)N)N)osreZup2date_clientr   ZinitUp2dateConfigr
   Z__rhnexport__r   r   r   r   __name__r   r   r   r   <module>   s   

