%PDF- %PDF-
| Direktori : /proc/self/root/usr/lib/python2.7/site-packages/salt/beacons/ |
| Current File : //proc/self/root/usr/lib/python2.7/site-packages/salt/beacons/ps.pyc |
�
���^c @@ s� d Z d d l m Z m Z d d l Z y d d l j j Z e Z
Wn e k
r] e Z
n Xd d l
m Z e j e � Z d Z d � Z d � Z d � Z d S( u%
Send events covering process status
i ( t absolute_importt unicode_literalsN( t mapu psc C@ s t s t d f St S( Nu+ cannot load ps beacon: psutil not available( t
HAS_PSUTILt Falset __virtualname__( ( ( s3 /usr/lib/python2.7/site-packages/salt/beacons/ps.pyt __virtual__ s
c C@ sr t | t � s t d f Si } t t | j | � � d | k rK t d f St | d t � sh t d f St d f S( u+
Validate the beacon configuration
u+ Configuration for ps beacon must be a list.u processesu/ Configuration for ps beacon requires processes.u- Processes for ps beacon must be a dictionary.u Valid beacon configuration( t
isinstancet listR R t updatet dictt True( t configt _config( ( s3 /usr/lib/python2.7/site-packages/salt/beacons/ps.pyt validate! s
c C@ s. g } g } x<