| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/landscape/monitor/ |
Upload File : |
}9Rc @ sN d d l Z d d l Z d d l Z d d l m Z d e f d YZ d S( iN( t
MonitorPlugint
UpdateManagerc B sM e Z d Z d Z d Z d Z e Z d d Z d Z
d Z d Z RS( s
Report on changes to the update-manager configuration.
@param update_manager_filename: the path to the update-manager
configuration file.
s$ /etc/update-manager/release-upgradess update-manageri c C s | d k r | | _ n d S( N( t Nonet update_manager_filename( t selfR ( ( sC /usr/lib/python2.7/dist-packages/landscape/monitor/updatemanager.pyt __init__ s c C s t j j | j s d St | j } t j } | j | | j d d } d d d g } | | k r d } d | j | f } t j
| n | S( s.
Retrieve the update-manager upgrade prompt which dictates when we
should prompt users to upgrade the release. Current valid values are
"normal" (prompt on all the availability of all releases), "lts"
(prompt only when LTS releases are available), and "never".
t normalt DEFAULTt Promptt ltst nevers6 %s contains invalid Prompt value. Should be one of %s.( t ost patht existsR t opent ConfigParsert SafeConfigParsert readfpt gett loggingt warning( R t config_filet parsert promptt
valid_promptst message( ( sC /usr/lib/python2.7/dist-packages/landscape/monitor/updatemanager.pyt _get_prompt s
c C so | j } | | j j d k r( d S| j j d | i d d 6| d 6} t j d | j j j | S( sH
Send the current upgrade release prompt to the server.
R Ns update-manager-infot types4 Queueing message with updated update-manager status.( R t _persistR t setR t infot registryt brokert send_message( R R R ( ( sC /usr/lib/python2.7/dist-packages/landscape/monitor/updatemanager.pyR! 6 s
c C s | j j j d | j S( sT
Send the update-manager-info messages, if the server accepts them.
s update-manager-info( R R t call_if_acceptedR! ( R ( ( sC /usr/lib/python2.7/dist-packages/landscape/monitor/updatemanager.pyt runE s N(
t __name__t
__module__t __doc__R t persist_namet run_intervalt Truet run_immediatelyR R R R! R# ( ( ( sC /usr/lib/python2.7/dist-packages/landscape/monitor/updatemanager.pyR s ( R R R t landscape.monitor.pluginR R ( ( ( sC /usr/lib/python2.7/dist-packages/landscape/monitor/updatemanager.pyt <module> s