%PDF- %PDF-
| Direktori : /proc/thread-self/root/proc/self/root/lib/python2.7/site-packages/salt/modules/ |
| Current File : //proc/thread-self/root/proc/self/root/lib/python2.7/site-packages/salt/modules/hosts.pyo |
�
���^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 j
j Z d d l Z d d l
m Z d d l m Z d � Z d � Z d � Z d � Z d
� Z d � Z d � Z d
� Z d � Z d � Z d � Z d S( u*
Manage the information in the hosts file
i ( t absolute_importt print_functiont unicode_literalsN( t six( t rangec C@ s= y t d SWn* t k
r8 t d d � t d <t d SXd S( u7
Return the path to the appropriate hosts file
u hosts.__get_hosts_filenameu
config.optionu
hosts.fileN( t __context__t KeyErrort __salt__( ( ( s6 /usr/lib/python2.7/site-packages/salt/modules/hosts.pyt __get_hosts_filename s
c C@ sV t � } | d k r d } n t j j | � sR t j j j | d � � Wd QXn | S( uX
Wrapper of __get_hosts_filename but create host file if it
does not exist.
u u wN( R t Nonet ost patht existst saltt utilst filest fopen( t hfn( ( s6 /usr/lib/python2.7/site-packages/salt/modules/hosts.pyt _get_or_create_hostfile"