%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/beacons/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/beacons/glxinfo.pyc

�
���^c@@s~dZddlmZmZddlZddlZddlmZej	e
�ZdZiZ
d�Zd�Zd�ZdS(	u[
Beacon to emit when a display is available to a linux machine

.. versionadded:: 2016.3.0
i(tabsolute_importtunicode_literalsN(tmapuglxinfocC@s-tjjjd�}|dkr%tStSdS(Nuglxinfo(tsalttutilstpathtwhichtNonetFalset__virtualname__(twhich_result((s8/usr/lib/python2.7/site-packages/salt/beacons/glxinfo.pyt__virtual__scC@sUt|t�stdfSi}tt|j|��d|krKtdfStdfS(u+
    Validate the beacon configuration
    u0Configuration for glxinfo beacon must be a list.uuseruYConfiguration for glxinfo beacon must include a user as glxinfo is not available to root.uValid beacon configuration(t
isinstancetlistRRtupdatetTrue(tconfigt_config((s8/usr/lib/python2.7/site-packages/salt/beacons/glxinfo.pytvalidate s

cC@s�tjd�g}i}tt|j|��tddd|ddt�}d|kr�|dr�tjdt	�}|d	k}||ks�dtkr�|j
idd
6|d6�n|td<n|S(u
    Emit the status of a connected display to the minion

    Mainly this is used to detect when the display fails to connect
    for whatever reason.

    .. code-block:: yaml

        beacons:
          glxinfo:
            - user: frank
            - screen_event: True

    uglxinfo beacon startingucmd.retcodeuDISPLAY=:0 glxinfotrunasuusertpython_shelluscreen_eventuscreen_availableiutag(tlogttraceR
RRt__salt__Rt
last_statetgetRtappend(RtretRtretcodet
last_valuetscreen_available((s8/usr/lib/python2.7/site-packages/salt/beacons/glxinfo.pytbeacon1s


(t__doc__t
__future__RRtloggingtsalt.utils.pathRtsalt.ext.six.movesRt	getLoggert__name__RR	RRRR(((s8/usr/lib/python2.7/site-packages/salt/beacons/glxinfo.pyt<module>s			

Zerion Mini Shell 1.0