%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/utils/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/utils/platform.pyc

�
���^c@@sjdZddlmZmZmZddlZddlZddlZddlZyddl	m
Zd�Z
Wn!ek
r�ddl
m
Z
nXddlmZed��Zed��Zed	��Zed
��Zed��Zed��Zed
��Zed��Zed��Zed��Zed��Zed��Zed��ZdS(u7
Functions for identifying which platform a machine is
i(tabsolute_importtprint_functiontunicode_literalsN(tlinux_distributioncK@s.tj��tjd�t|�SWdQXdS(Nuignore(twarningstcatch_warningstsimplefiltert_deprecated_linux_distribution(tkwargs((s7/usr/lib/python2.7/site-packages/salt/utils/platform.pyRs

(tmemoizecC@stjjd�S(u?
    Simple function to return if a host is Windows or not
    uwin(tsystplatformt
startswith(((s7/usr/lib/python2.7/site-packages/salt/utils/platform.pyt
is_windowsscC@sUddl}t}y+d|jks3dtjkr<t}nWntk
rPnX|S(u�
    Return True if this minion is a proxy minion.
    Leverages the fact that is_linux() and is_windows
    both return False for proxies.
    TODO: Need to extend this for proxies that might run on
    other Unices
    iNuproxyu	--proxyid(t__main__tFalset__file__R
targvtTruetAttributeError(tmaintret((s7/usr/lib/python2.7/site-packages/salt/utils/platform.pytis_proxy#s	

cC@stjjd�S(u|
    Simple function to return if a host is Linux or not.
    Note for a proxy minion, we need to return something else
    ulinux(R
RR(((s7/usr/lib/python2.7/site-packages/salt/utils/platform.pytis_linux>scC@stjjd�S(uF
    Simple function to return if a host is Darwin (macOS) or not
    udarwin(R
RR(((s7/usr/lib/python2.7/site-packages/salt/utils/platform.pyt	is_darwinGscC@stjjd�S(u;
    Simple function to return if host is SunOS or not
    usunos(R
RR(((s7/usr/lib/python2.7/site-packages/salt/utils/platform.pytis_sunosOscC@s(t�s
tStj�djd�SdS(uG
    Simple function to return if host is SmartOS (Illumos) or not
    iujoyent_N(RRtostunameR(((s7/usr/lib/python2.7/site-packages/salt/utils/platform.pyt
is_smartosWs	cC@s�t�s
tSdg}y+tj|dtdtjdtj�}Wntk
rUtSX|jrctS|jj�j	�dkr�t
StSdS(uL
    Function to return if host is SmartOS (Illumos) global zone or not
    uzonenametshelltstdouttstderruglobalN(RRt
subprocesstPopentPIPEtOSErrort
returncodeRtreadtstripR(tcmdtzonename((s7/usr/lib/python2.7/site-packages/salt/utils/platform.pytis_smartos_globalzonebs		
	cC@s�t�s
tSdg}y+tj|dtdtjdtj�}Wntk
rUtSX|jrctS|jj�j	�dkr�tSt
SdS(uH
    Function to return if host is SmartOS (Illumos) and not the gz
    uzonenameRRRuglobalN(RRR R!R"R#R$RR%R&R(R'R(((s7/usr/lib/python2.7/site-packages/salt/utils/platform.pytis_smartos_zoneys		
	cC@stjjd�S(u=
    Simple function to return if host is FreeBSD or not
    ufreebsd(R
RR(((s7/usr/lib/python2.7/site-packages/salt/utils/platform.pyt
is_freebsd�scC@stjjd�S(u<
    Simple function to return if host is NetBSD or not
    unetbsd(R
RR(((s7/usr/lib/python2.7/site-packages/salt/utils/platform.pyt	is_netbsd�scC@stjjd�S(u=
    Simple function to return if host is OpenBSD or not
    uopenbsd(R
RR(((s7/usr/lib/python2.7/site-packages/salt/utils/platform.pyt
is_openbsd�scC@stjjd�S(u9
    Simple function to return if host is AIX or not
    uaix(R
RR(((s7/usr/lib/python2.7/site-packages/salt/utils/platform.pytis_aix�scC@sAgt�D]}|jd�jd�^q
\}}}|dkS(u<
    Simple function to return if host is Fedora or not
    u"u'uFedora(RR&(txtosnamet	osreleaset
oscodename((s7/usr/lib/python2.7/site-packages/salt/utils/platform.pyt	is_fedora�s7(t__doc__t
__future__RRRRR R
RRRRtImportErrortdistrotsalt.utils.decoratorsR	treal_memoizeR
RRRRRR)R*R+R,R-R.R3(((s7/usr/lib/python2.7/site-packages/salt/utils/platform.pyt<module>s0

	

Zerion Mini Shell 1.0