Current Path : /usr/lib/python2.7/dist-packages/landscape/monitor/ |
Current File : //usr/lib/python2.7/dist-packages/landscape/monitor/computerinfo.pyc |
Tc @ s d d l Z d d l Z d d l m Z m Z d d l m Z d d l m Z d d l m Z m Z d d l m Z d d l m Z d d l m Z d Z d e f d YZ d e f d YZ d S( iN( t inlineCallbackst returnValue( t fetch_async( t read_file( t LSB_RELEASE_FILENAMEt parse_lsb_release( t fetch_ec2_meta_data( t get_fqdn( t MonitorPlugini t DistributionInfoErrorc B s e Z RS( ( t __name__t __module__( ( ( sB /usr/lib/python2.7/dist-packages/landscape/monitor/computerinfo.pyR s t ComputerInfoc B s e Z d Z d Z d Z e d e d e d Z d Z e d Z e d Z e e d Z e d Z d Z d Z d Z d Z d Z e d Z d Z RS( s7 Plugin captures and reports basic computer information.s computer-infot computers /proc/meminfot /c C sC | | _ | | _ | | _ | | _ d | _ d | _ | | _ d S( Ni ( t _get_fqdnt _meminfo_filenamet _lsb_release_filenamet _root_patht Nonet _cloud_instance_metadatat _cloud_retriest _fetch_async( t selfR t meminfo_filenamet lsb_release_filenamet root_pathR ( ( sB /usr/lib/python2.7/dist-packages/landscape/monitor/computerinfo.pyt __init__ s c C sk t t | j | | j j | _ | j d | j t | j d | j t | j d | j t d S( Ns computer-infos distribution-infos cloud-instance-metadata( t superR t registert configt annotations_patht _annotations_patht call_on_acceptedt send_computer_messaget Truet send_distribution_messaget$ send_cloud_instance_metadata_message( R t registry( ( sB /usr/lib/python2.7/dist-packages/landscape/monitor/computerinfo.pyR % s c C sO | j } | rK d | d <t j d | j j j | | j d | n d S( Ns computer-infot types, Queueing message with updated computer info.t urgent( t _create_computer_info_messaget loggingt infoR&