Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/module_utils/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/module_utils/pure.pyc

�
�Udac@s�eZyddlmZWnek
r3eZnXeZy,ddlmZmZm	Z	m
Z
mZWnek
reZnXddlm
Z
ddlmZddlmZddlZdZdZd	Zd
�Zd�Zd�Zd
�ZdS(i����(tpurestorage(tPurityFbt
FileSystemtFileSystemSnapshottSnapshotSuffixtrest(twraps(tenviron(tpathNg333333�?tAnsibleg�?cCsditd6td6td6tj�d6}|jd}|jd}|rp|rptj|d|d|�}n^tjd	�r�tjd
�r�tjtjd	�dtjd
�d|�}n|j	dd�y|j�Wn!t
k
r�|j	dd
�nX|S(sReturn System Object or Fails-%(base)s %(class)s/%(version)s (%(platform)s)tbasetclasstversiontplatformtfa_urlt	api_tokent
user_agentt
PUREFA_URLt
PUREFA_APItmsgsiYou must set PUREFA_URL and PUREFA_API environment variables or the fa_url and api_token module argumentssEPure Storage FlashArray authentication failed. Check your credentials(tUSER_AGENT_BASEt__name__tVERSIONR
tparamsRt
FlashArrayRtgett	fail_jsont	Exception(tmoduleRt
array_nametapitsystem((s=/usr/lib/python2.7/site-packages/ansible/module_utils/pure.pyt
get_system5s"

0
cCs�ditd6td6td6tj�d6}|jd}|jd}|r�|r�t|�}|j�y>|j|�|jj	�j
}t|kr�||j_
nWq�tjk
r�}|jdd	�q�Xn�tjd
�r�tjd�r�ttjd
��}|j�yG|jtjd��|jj	�j
}t|krU||j_
nWq�tjk
r~}|jdd	�q�Xn|jdd�|S(
sReturn System Object or Fails-%(base)s %(class)s/%(version)s (%(platform)s)R
RRR
tfb_urlRRsEPure Storage FlashBlade authentication failed. Check your credentialst
PUREFB_URLt
PUREFB_APIsiYou must set PUREFB_URL and PUREFB_API environment variables or the fb_url and api_token module arguments(RRRR
RRtdisable_verify_ssltlogintapi_versiont
list_versionstversionstAPI_AGENT_VERSIONt_api_clientRRtApiExceptionRRR(RRt
blade_nameRtbladeR(te((s=/usr/lib/python2.7/site-packages/ansible/module_utils/pure.pyt	get_bladeMs:




cCstdt�dtdt��S(sTReturn standard base dictionary used for the argument_spec argument in AnsibleModuleRRtno_log(tdicttTrue(((s=/usr/lib/python2.7/site-packages/ansible/module_utils/pure.pytpurefa_argument_specqs	cCstdt�dtdt��S(sTReturn standard base dictionary used for the argument_spec argument in AnsibleModuleR!RR0(R1R2(((s=/usr/lib/python2.7/site-packages/ansible/module_utils/pure.pytpurefb_argument_speczs	(R2tHAS_PURESTORAGERtImportErrortFalset
HAS_PURITY_FBt	purity_fbRRRRRt	functoolsRtosRRR
RRR)R R/R3R4(((s=/usr/lib/python2.7/site-packages/ansible/module_utils/pure.pyt<module>s(

,

		$		

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]