%PDF- %PDF-
| Direktori : /proc/self/root/proc/thread-self/root/usr/lib/python2.7/site-packages/salt/modules/ |
| Current File : //proc/self/root/proc/thread-self/root/usr/lib/python2.7/site-packages/salt/modules/dnsmasq.pyc |
�
���^c @@ s� d Z d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l Z d d l
m Z d d l m
Z
e j e � Z d � Z d � Z d � Z d e d
� Z d d � Z d � Z d S(
u
Module for managing dnsmasq
i ( t absolute_importt print_functiont unicode_literalsN( t CommandExecutionError( t sixc C@ s t j j j � r t d f St S( u*
Only work on POSIX-like systems.
uM dnsmasq execution module cannot be loaded: only works on non-Windows systems.( t saltt utilst platformt
is_windowst Falset True( ( ( s8 /usr/lib/python2.7/site-packages/salt/modules/dnsmasq.pyt __virtual__ s c C@ s4 d } t d | � j � } | d j � } | d S( u{
Shows installed version of dnsmasq.
CLI Example:
.. code-block:: bash
salt '*' dnsmasq.version
u
dnsmasq -vu cmd.runi i ( t __salt__t
splitlinest split( t cmdt outt comps( ( s8 /usr/lib/python2.7/site-packages/salt/modules/dnsmasq.pyt version# s
c C@ s\ d } t d | � j � } | d j � } | d } | d j � } i | d 6| d d 6S( u�
Shows installed version of dnsmasq and compile options.
CLI Example:
.. code-block:: bash
salt '*' dnsmasq.fullversion
u
dnsmasq -vu cmd.runi i i u versioni u compile options( R R
R ( R R R t version_num( ( s8 /usr/lib/python2.7/site-packages/salt/modules/dnsmasq.pyt fullversion3 s
u /etc/dnsmasq.confc
K@ s� t | � } | g } | t k r� d | k r� x� t j | d � D]� } | j d � r\ qA n | j d � rq qA n | j d � r� qA n | j d � r� | j d � r� qA n | j d j | d | � � qA Wn i } x� | D]� } | j d � r� q� n | | | | <| | k r�t | | t j
� rpxh | D]<