Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/module_utils/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/module_utils/ansible_tower.pyo

�
�Udac@s�ddlZddlZdZy<ddljjZddlm	Z	ddl
mZeZ
Wn#ek
rej�ZeZ
nXddlmZmZd�Zd�Zdefd��YZdS(	i����N(tparser(tclient(t
AnsibleModuletmissing_required_libcCsb|jjdd�}|r�tjj|�sD|jdd|�ntjj|�rm|jdd|�nt|d��}t	j
|j��SWdQXn�i}|jjdd�}|r�||d<n|jjd	d�}|r�||d
<n|jjdd�}|r||d<n|jjd
d�|jjdd�}|dk	rZ||d<n|SdS(s*tower_auth_config attempts to load the tower-cli.cfg file
    specified from the `tower_config_file` parameter. If found,
    if returns the contents of the file as a dictionary, else
    it will attempt to fetch values from the module params and
    only pass those values that have been set.
    ttower_config_filetmsgsfile not found: %ss,directory can not be used as config file: %strbNt
tower_hostthostttower_usernametusernamettower_passwordtpasswordttower_verify_ssltvalidate_certst
verify_ssl(tparamstpoptNonetostpathtexistst	fail_jsontisdirtopenRtstring_to_dicttread(tmoduletconfig_filetftauth_configRR
RR((sF/usr/lib/python2.7/site-packages/ansible/module_utils/ansible_tower.pyttower_auth_config.s.



cCs�|jr�y<tjd�j�}|jdtddj|d��Wq�tjtj	tj
fk
r�}|jdtddj|��q�XndS(	s2Execute check mode logic for Ansible Tower moduless/pingtchangedt
tower_versions{0}tversionRsFailed check mode: {0}N(
t
check_modeRtgettjsont	exit_jsontTruetformattexctServerErrortConnectionErrort
BadRequestRtFalse(Rtresulttexcinfo((sF/usr/lib/python2.7/site-packages/ansible/module_utils/ansible_tower.pyttower_check_modePs	'!tTowerModulecBseZd�ZRS(c
Ks�tdt�dt�dtdt�dtdddd	g�d
tdd��}|j|�|jdg�}|jddddf�|d<tt|�jd
||�ts�|j	dt
d�dt�ndS(NRR	Rtno_logRttypetbooltaliasesR
RRtmutually_exclusivet
argument_specRsansible-tower-clit	exception(RR(RR	(RR(RR(tdictR'tupdateR$textendtsuperR1t__init__t
HAS_TOWER_CLIRRtTOWER_CLI_IMP_ERR(tselfR7tkwargstargsR6((sF/usr/lib/python2.7/site-packages/ansible/module_utils/ansible_tower.pyR=[s"		
(t__name__t
__module__R=(((sF/usr/lib/python2.7/site-packages/ansible/module_utils/ansible_tower.pyR1Zs(Rt	tracebackRR?ttower_cli.utils.exceptionstutilst
exceptionsR)ttower_cli.utilsRt
tower_cli.apiRR'R>tImportErrort
format_excR-tansible.module_utils.basicRRRR0R1(((sF/usr/lib/python2.7/site-packages/ansible/module_utils/ansible_tower.pyt<module>s


	"	

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